Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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_latest_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_latest_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.001833/0.001833, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002543/0.002542, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.809/2.809, allocations: 472.7 MB / 0.7452 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.45 kB / 0.9121 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3439, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1086/0.4526, allocations: 112.7 MB / 1.178 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03099/0.4836, allocations: 20.24 MB / 1.198 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005641/0.4893, allocations: 107.3 kB / 1.198 GB, free: 5.039 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004373/0.4937, allocations: 1.277 MB / 1.199 GB, free: 3.754 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.5041, allocations: 3.696 MB / 1.203 GB, free: 44 kB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.007682/0.5118, allocations: 3.075 MB / 1.206 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.009837/0.5217, allocations: 7.179 MB / 1.213 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0039/0.5256, allocations: 2.583 MB / 1.216 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006391/0.532, allocations: 2.806 MB / 1.218 GB, free: 360 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00403/0.5361, allocations: 2.124 MB / 1.22 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0007287/0.5368, allocations: 252 kB / 1.221 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004182/0.541, allocations: 1.642 MB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0009351/0.542, allocations: 0.6967 MB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002467/0.5444, allocations: 1.512 MB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.005733/0.5502, allocations: 4.338 MB / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.5502, allocations: 0 / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.863e-06/0.5502, allocations: 0 / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.095e-05/0.5503, allocations: 0 / 1.229 GB, free: 5.758 MB / 0.9825 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.005308/0.5556, allocations: 3.23 MB / 1.232 GB, free: 2.461 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.5557, allocations: 11.98 kB / 1.232 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007577/0.5564, allocations: 324.6 kB / 1.232 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003323/0.5598, allocations: 2.112 MB / 1.234 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.23e-05/0.5599, allocations: 127 kB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/0.5601, allocations: 164 kB / 1.234 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/0.5628, allocations: 1.608 MB / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.082e-05/0.5628, allocations: 0 / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.563, allocations: 64 kB / 1.236 GB, free: 13.92 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-05/0.563, allocations: 47.86 kB / 1.236 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001946/0.565, allocations: 1.147 MB / 1.237 GB, free: 12.72 MB / 0.9981 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.01049/0.5755, allocations: 7.971 MB / 1.245 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007925/0.5763, allocations: 485.5 kB / 1.245 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004896/0.5768, allocations: 326.9 kB / 1.246 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006028/0.5774, allocations: 0.7602 MB / 1.246 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.5775, allocations: 43.12 kB / 1.247 GB, free: 2.461 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.795e-06/0.5775, allocations: 0 / 1.247 GB, free: 2.461 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002131/0.5796, allocations: 0.9842 MB / 1.247 GB, free: 1.469 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.5797, allocations: 59.95 kB / 1.248 GB, free: 1.398 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6299/1.21, allocations: 2.334 MB / 1.25 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002676/1.21, allocations: 47.23 kB / 1.25 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001024/1.211, allocations: 1.155 MB / 1.251 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002632/1.211, allocations: 212.4 kB / 1.251 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004221/1.212, allocations: 253.6 kB / 1.251 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.688e-05/1.212, allocations: 348.2 kB / 1.252 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007282/1.212, allocations: 364.1 kB / 1.252 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/1.214, allocations: 0.749 MB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/1.215, allocations: 0.9805 MB / 1.254 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/1.215, allocations: 2.281 kB / 1.254 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002909/1.218, allocations: 1.295 MB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/1.218, allocations: 9.328 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/1.218, allocations: 8.5 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.11e-05/1.218, allocations: 13.75 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/1.219, allocations: 254.4 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.06e-05/1.219, allocations: 19.61 kB / 1.255 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/1.221, allocations: 168.4 kB / 1.256 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/1.221, allocations: 53.67 kB / 1.256 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001415/1.223, allocations: 0.7596 MB / 1.256 GB, free: 175.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000734/1.223, allocations: 0.7436 MB / 1.257 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001191/1.225, allocations: 0.9523 MB / 1.258 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.661e-06/1.225, allocations: 2.625 kB / 1.258 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002107/1.227, allocations: 1.257 MB / 1.259 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/1.227, allocations: 7.906 kB / 1.259 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.475e-06/1.227, allocations: 8.75 kB / 1.259 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/1.227, allocations: 14.22 kB / 1.259 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007963/1.228, allocations: 247.1 kB / 1.259 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/1.228, allocations: 27.47 kB / 1.259 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/1.229, allocations: 119.7 kB / 1.26 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.449e-05/1.229, allocations: 55.91 kB / 1.26 GB, free: 174 MB / 0.9981 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.000341/1.229, allocations: 245.2 kB / 1.26 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000344/1.23, allocations: 237.9 kB / 1.26 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/1.231, allocations: 0.888 MB / 1.261 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/1.231, allocations: 11.81 kB / 1.261 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.231, allocations: 0 / 1.261 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008663/1.232, allocations: 0.683 MB / 1.262 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003624/1.236, allocations: 2.581 MB / 1.264 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/1.236, allocations: 0.9062 kB / 1.264 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005192/1.237, allocations: 124.5 kB / 1.264 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/1.237, allocations: 4.844 kB / 1.264 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/1.237, allocations: 20.58 kB / 1.264 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/1.237, allocations: 3.719 kB / 1.264 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.165e-06/1.237, allocations: 6.422 kB / 1.264 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/1.238, allocations: 1.31 MB / 1.266 GB, free: 171.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006168/1.239, allocations: 416.8 kB / 1.266 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002376/1.239, allocations: 11.92 kB / 1.266 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008918/1.24, allocations: 53.84 kB / 1.266 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/1.24, allocations: 46.16 kB / 1.266 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.09e-05/1.24, allocations: 30.89 kB / 1.266 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002458/1.243, allocations: 1.568 MB / 1.268 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.243, allocations: 2.062 kB / 1.268 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003085/1.246, allocations: 1.108 MB / 1.269 GB, free: 169.9 MB / 0.9981 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.001645/1.248, allocations: 0.7556 MB / 1.269 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003188/1.251, allocations: 1.454 MB / 1.271 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/1.251, allocations: 1.469 kB / 1.271 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005073/1.251, allocations: 323.6 kB / 1.271 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006156/1.258, allocations: 1.386 MB / 1.273 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005508/1.263, allocations: 3.744 MB / 1.276 GB, free: 167 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/1.264, allocations: 1.593 MB / 1.278 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002795/1.267, allocations: 0.4885 MB / 1.278 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004759/1.268, allocations: 177.3 kB / 1.278 GB, free: 166 MB / 0.9981 GB Notification: Performance of SimCode: time 1.372e-06/1.268, allocations: 0 / 1.278 GB, free: 166 MB / 0.9981 GB Notification: Performance of Templates: time 0.06937/1.337, allocations: 46.86 MB / 1.324 GB, free: 134.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches