Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001308, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01018/0.01018, allocations: 172.1 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.785/2.785, allocations: 443.3 MB / 0.7175 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 9.219 kB / 0.8796 GB, free: 41.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3295, allocations: 155.2 MB / 1.031 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01741/0.3469, allocations: 16.86 MB / 1.048 GB, free: 3.438 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00725/0.3542, allocations: 4.856 MB / 1.052 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005281/0.3548, allocations: 15.88 kB / 1.052 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008557/0.3556, allocations: 203 kB / 1.053 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.3573, allocations: 0.5638 MB / 1.053 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.3593, allocations: 0.6474 MB / 1.054 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001502/0.3608, allocations: 1.267 MB / 1.055 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004253/0.3612, allocations: 284.1 kB / 1.055 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000678/0.3619, allocations: 374.4 kB / 1.056 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003996/0.3623, allocations: 310.6 kB / 1.056 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.329e-05/0.3624, allocations: 16 kB / 1.056 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001283/0.3637, allocations: 0.69 MB / 1.057 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.3638, allocations: 123.5 kB / 1.057 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002326/0.3641, allocations: 256.3 kB / 1.057 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.3651, allocations: 0.8372 MB / 1.058 GB, free: 8.996 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3651, allocations: 4 kB / 1.058 GB, free: 8.992 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3651, allocations: 3.938 kB / 1.058 GB, free: 8.988 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.3651, allocations: 0 / 1.058 GB, free: 8.988 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001258/0.3664, allocations: 0.7904 MB / 1.059 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3665, allocations: 12.03 kB / 1.059 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.3666, allocations: 56.28 kB / 1.059 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005695/0.3672, allocations: 453.6 kB / 1.059 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.3672, allocations: 28.44 kB / 1.059 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.3673, allocations: 28 kB / 1.059 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004734/0.3678, allocations: 290.3 kB / 1.059 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3678, allocations: 3.938 kB / 1.059 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.3678, allocations: 12 kB / 1.059 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.3678, allocations: 4 kB / 1.059 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000408/0.3682, allocations: 202.1 kB / 1.06 GB, free: 7.023 MB / 0.8106 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.3701, allocations: 1.484 MB / 1.061 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.3704, allocations: 166.8 kB / 1.061 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.3706, allocations: 88.81 kB / 1.061 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001654/0.3723, allocations: 1.284 MB / 1.062 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.3723, allocations: 38.5 kB / 1.063 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 2.435e-06/0.3723, allocations: 0 / 1.063 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.000705/0.373, allocations: 271.5 kB / 1.063 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.3731, allocations: 51.41 kB / 1.063 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.3738, allocations: 0.5925 MB / 1.063 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.3739, allocations: 29.7 kB / 1.063 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.3741, allocations: 272.1 kB / 1.064 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.515e-05/0.3742, allocations: 51.3 kB / 1.064 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-05/0.3742, allocations: 29.7 kB / 1.064 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001979/0.3744, allocations: 358.8 kB / 1.064 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.3746, allocations: 80.52 kB / 1.064 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.375, allocations: 222.7 kB / 1.064 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004479/0.3754, allocations: 243.9 kB / 1.065 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3754, allocations: 0 / 1.065 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006128/0.3761, allocations: 320.7 kB / 1.065 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001373/0.3762, allocations: 179.5 kB / 1.065 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.3762, allocations: 3.984 kB / 1.065 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.3763, allocations: 7.938 kB / 1.065 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.3765, allocations: 67.91 kB / 1.065 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.3765, allocations: 4 kB / 1.065 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003412/0.3769, allocations: 51.66 kB / 1.065 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.063e-05/0.3769, allocations: 16 kB / 1.065 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.776e-06/0.377, allocations: 4.094 kB / 1.065 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000508/0.3775, allocations: 253.1 kB / 1.066 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.675e-06/0.3775, allocations: 0 / 1.066 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.15e-06/0.3775, allocations: 4 kB / 1.066 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.3777, allocations: 67.84 kB / 1.066 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3777, allocations: 7.938 kB / 1.066 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.378, allocations: 51.84 kB / 1.066 GB, free: 292 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.3781, allocations: 8 kB / 1.066 GB, free: 284 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002263/0.3783, allocations: 264.9 kB / 1.066 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.334e-05/0.3784, allocations: 43.48 kB / 1.066 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005743/0.379, allocations: 283.2 kB / 1.066 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.379, allocations: 0 / 1.066 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.379, allocations: 0 / 1.066 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.379, allocations: 0 / 1.066 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.3801, allocations: 0.7434 MB / 1.067 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.3801, allocations: 7.984 kB / 1.067 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.3802, allocations: 28.11 kB / 1.067 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3802, allocations: 8 kB / 1.067 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3802, allocations: 4 kB / 1.067 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.3802, allocations: 4 kB / 1.067 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3802, allocations: 0 / 1.067 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004746/0.3807, allocations: 366.1 kB / 1.067 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.3809, allocations: 152.4 kB / 1.067 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.02e-05/0.3809, allocations: 4 kB / 1.067 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.3812, allocations: 23.89 kB / 1.068 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.3812, allocations: 19.97 kB / 1.068 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.3812, allocations: 12 kB / 1.068 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004631/0.3817, allocations: 414.8 kB / 1.068 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3817, allocations: 0 / 1.068 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0007413/0.3825, allocations: 235.6 kB / 1.068 GB, free: 13.57 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001213/0.3837, allocations: 0.4885 MB / 1.069 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006996/0.3844, allocations: 345.4 kB / 1.069 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3844, allocations: 0 / 1.069 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.3846, allocations: 95.89 kB / 1.069 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.386, allocations: 245.6 kB / 1.069 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.3874, allocations: 0.9897 MB / 1.07 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.3879, allocations: 0.8428 MB / 1.071 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003453/0.3882, allocations: 108.2 kB / 1.071 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.701e-05/0.3883, allocations: 43.42 kB / 1.071 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of SimCode: time 5.71e-07/0.3883, allocations: 0 / 1.071 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.01777/0.4061, allocations: 9.822 MB / 1.081 GB, free: 0.8086 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches