Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007099/0.007099, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001241/0.001241, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.469/2.469, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.06 kB / 0.9508 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3271, allocations: 140.4 MB / 1.088 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1112/0.4384, allocations: 112.7 MB / 1.198 GB, free: 484 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.03443/0.4729, allocations: 20.25 MB / 1.218 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005651/0.4786, allocations: 107.3 kB / 1.218 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.005463/0.4841, allocations: 1.3 MB / 1.219 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0143/0.4985, allocations: 3.875 MB / 1.223 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.009535/0.508, allocations: 3.136 MB / 1.226 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01253/0.5206, allocations: 7.222 MB / 1.233 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005197/0.5258, allocations: 2.572 MB / 1.235 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008212/0.534, allocations: 2.91 MB / 1.238 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004786/0.5388, allocations: 2.135 MB / 1.24 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001204/0.5401, allocations: 252 kB / 1.241 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005299/0.5454, allocations: 1.65 MB / 1.242 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001462/0.5469, allocations: 0.6889 MB / 1.243 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003616/0.5505, allocations: 1.508 MB / 1.244 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.5608, allocations: 4.389 MB / 1.249 GB, free: 12.33 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.5609, allocations: 0 / 1.249 GB, free: 12.33 MB / 1.014 GB Notification: Performance of FrontEnd: time 6.893e-06/0.5609, allocations: 4 kB / 1.249 GB, free: 12.32 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002051/0.5611, allocations: 0 / 1.249 GB, free: 12.32 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.008653/0.5698, allocations: 3.226 MB / 1.252 GB, free: 9.031 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.5698, allocations: 12.03 kB / 1.252 GB, free: 9.02 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001296/0.5711, allocations: 328.5 kB / 1.252 GB, free: 8.695 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00542/0.5766, allocations: 2.198 MB / 1.254 GB, free: 6.426 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.5768, allocations: 123 kB / 1.254 GB, free: 6.305 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005332/0.5773, allocations: 176 kB / 1.255 GB, free: 6.133 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00369/0.581, allocations: 1.608 MB / 1.256 GB, free: 4.461 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.216e-05/0.5811, allocations: 4 kB / 1.256 GB, free: 4.457 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.5812, allocations: 60 kB / 1.256 GB, free: 4.398 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-05/0.5813, allocations: 43.94 kB / 1.256 GB, free: 4.355 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002196/0.5835, allocations: 1.143 MB / 1.257 GB, free: 3.207 MB / 1.014 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.7215/1.305, allocations: 7.919 MB / 1.265 GB, free: 164.4 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009834/1.306, allocations: 469.6 kB / 1.266 GB, free: 164.4 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006033/1.307, allocations: 326.5 kB / 1.266 GB, free: 164.4 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005587/1.307, allocations: 0.7653 MB / 1.267 GB, free: 163.5 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/1.307, allocations: 39.06 kB / 1.267 GB, free: 163.5 MB / 1.014 GB Notification: Performance of pre-optimization done (n=60): time 2.976e-06/1.307, allocations: 0.7812 kB / 1.267 GB, free: 163.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=60): time 0.002715/1.31, allocations: 0.9865 MB / 1.268 GB, free: 163.2 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/1.31, allocations: 58.47 kB / 1.268 GB, free: 163.1 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004454/1.314, allocations: 2.344 MB / 1.27 GB, free: 162.3 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002813/1.315, allocations: 49.11 kB / 1.27 GB, free: 162.2 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001061/1.316, allocations: 1.15 MB / 1.271 GB, free: 161.4 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002559/1.316, allocations: 211.2 kB / 1.271 GB, free: 161.3 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004262/1.317, allocations: 259.1 kB / 1.272 GB, free: 161.1 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.887e-05/1.317, allocations: 350.2 kB / 1.272 GB, free: 160.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007792/1.317, allocations: 355.4 kB / 1.272 GB, free: 160.7 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/1.318, allocations: 0.7504 MB / 1.273 GB, free: 160.1 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001645/1.32, allocations: 0.9823 MB / 1.274 GB, free: 159.5 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/1.32, allocations: 7.047 kB / 1.274 GB, free: 159.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003447/1.324, allocations: 1.293 MB / 1.275 GB, free: 158.9 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/1.324, allocations: 8.5 kB / 1.275 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/1.324, allocations: 9.125 kB / 1.275 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.152e-05/1.324, allocations: 15.22 kB / 1.275 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/1.325, allocations: 254.1 kB / 1.276 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.247e-05/1.325, allocations: 19.84 kB / 1.276 GB, free: 158.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/1.327, allocations: 179 kB / 1.276 GB, free: 158.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/1.327, allocations: 50.67 kB / 1.276 GB, free: 158.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001594/1.329, allocations: 0.7572 MB / 1.276 GB, free: 158.4 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008772/1.329, allocations: 0.7357 MB / 1.277 GB, free: 157.8 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001217/1.331, allocations: 0.9576 MB / 1.278 GB, free: 157.2 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.392e-06/1.331, allocations: 2.625 kB / 1.278 GB, free: 157.2 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002903/1.334, allocations: 1.255 MB / 1.279 GB, free: 156.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/1.334, allocations: 12.69 kB / 1.279 GB, free: 156.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/1.334, allocations: 9.438 kB / 1.279 GB, free: 156.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/1.334, allocations: 14.58 kB / 1.279 GB, free: 156.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000926/1.335, allocations: 250.6 kB / 1.28 GB, free: 156.6 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.456e-05/1.335, allocations: 21.09 kB / 1.28 GB, free: 156.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/1.337, allocations: 123 kB / 1.28 GB, free: 156.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/1.337, allocations: 50.06 kB / 1.28 GB, free: 156.5 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0004072/1.337, allocations: 247.2 kB / 1.28 GB, free: 156.3 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005336/1.338, allocations: 243.3 kB / 1.28 GB, free: 156.2 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/1.34, allocations: 0.8817 MB / 1.281 GB, free: 155.8 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/1.34, allocations: 8.797 kB / 1.281 GB, free: 155.8 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/1.34, allocations: 2.438 kB / 1.281 GB, free: 155.8 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00101/1.341, allocations: 0.6807 MB / 1.282 GB, free: 155.5 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004978/1.346, allocations: 2.591 MB / 1.284 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/1.346, allocations: 1.125 kB / 1.284 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005754/1.346, allocations: 130.5 kB / 1.284 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.969e-06/1.346, allocations: 3.75 kB / 1.284 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/1.346, allocations: 18.31 kB / 1.285 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/1.346, allocations: 4.344 kB / 1.285 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.346, allocations: 3.297 kB / 1.285 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/1.349, allocations: 1.319 MB / 1.286 GB, free: 153.6 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/1.35, allocations: 416 kB / 1.286 GB, free: 153.3 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/1.351, allocations: 13.06 kB / 1.286 GB, free: 153.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/1.352, allocations: 51.72 kB / 1.286 GB, free: 153.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/1.352, allocations: 44.22 kB / 1.286 GB, free: 153.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/1.352, allocations: 35.11 kB / 1.286 GB, free: 153.2 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.003669/1.356, allocations: 1.571 MB / 1.288 GB, free: 152.6 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.61e-07/1.356, allocations: 0 / 1.288 GB, free: 152.6 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004597/1.361, allocations: 1.102 MB / 1.289 GB, free: 152.4 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002159/1.363, allocations: 0.7624 MB / 1.29 GB, free: 152.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003221/1.366, allocations: 1.355 MB / 1.291 GB, free: 151.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.366, allocations: 1.156 kB / 1.291 GB, free: 151.8 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006562/1.367, allocations: 328.8 kB / 1.291 GB, free: 151.7 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00733/1.374, allocations: 1.384 MB / 1.293 GB, free: 151.4 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008172/1.382, allocations: 3.682 MB / 1.296 GB, free: 149.5 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/1.385, allocations: 1.588 MB / 1.298 GB, free: 148.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.003503/1.388, allocations: 0.4887 MB / 1.298 GB, free: 148.6 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007985/1.389, allocations: 171.5 kB / 1.298 GB, free: 148.6 MB / 1.014 GB Notification: Performance of SimCode: time 7.81e-07/1.389, allocations: 0 / 1.298 GB, free: 148.6 MB / 1.014 GB Notification: Performance of Templates: time 0.06829/1.457, allocations: 44.8 MB / 1.342 GB, free: 114.1 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches