Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow|THeaHigPowIn.T|THeaHigPowOut.T|TCooLimPowIn.T|TCooLimPowOut.T|THeaCooUnlIn.T|THeaCooUnlOut.T|TSteStaIn.T|TSteStaOut.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow|THeaHigPowIn.T|THeaHigPowOut.T|TCooLimPowIn.T|TCooLimPowOut.T|THeaCooUnlIn.T|THeaCooUnlOut.T|TSteStaIn.T|TSteStaOut.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001316/0.001316, allocations: 190.7 kB / 16.25 MB, free: 6.633 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.418/1.418, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.855/2.855, allocations: 482.4 MB / 0.7543 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 64.19 kB / 0.9233 GB, free: 29.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3359, allocations: 162.2 MB / 1.082 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.05532/0.3912, allocations: 54.1 MB / 1.135 GB, free: 7.375 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01512/0.4064, allocations: 10.31 MB / 1.145 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.4084, allocations: 63.56 kB / 1.145 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.4105, allocations: 0.7814 MB / 1.145 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.004889/0.4154, allocations: 1.779 MB / 1.147 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004914/0.4203, allocations: 1.904 MB / 1.149 GB, free: 8.512 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005057/0.4254, allocations: 3.769 MB / 1.153 GB, free: 4.727 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.4272, allocations: 1.169 MB / 1.154 GB, free: 3.539 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003913/0.4311, allocations: 1.883 MB / 1.156 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.4329, allocations: 1.225 MB / 1.157 GB, free: 428 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.4331, allocations: 108 kB / 1.157 GB, free: 320 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00294/0.436, allocations: 1.318 MB / 1.158 GB, free: 14.99 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003905/0.4364, allocations: 390.5 kB / 1.159 GB, free: 14.61 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0009728/0.4374, allocations: 0.8585 MB / 1.16 GB, free: 13.75 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00331/0.4407, allocations: 2.418 MB / 1.162 GB, free: 11.32 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.4407, allocations: 0 / 1.162 GB, free: 11.32 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.754e-06/0.4407, allocations: 0 / 1.162 GB, free: 11.32 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.843e-05/0.4408, allocations: 7.984 kB / 1.162 GB, free: 11.31 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003488/0.4443, allocations: 2.125 MB / 1.164 GB, free: 9.121 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.4443, allocations: 12.03 kB / 1.164 GB, free: 9.109 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003532/0.4479, allocations: 0.6454 MB / 1.165 GB, free: 8.461 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.4496, allocations: 1.097 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.228e-05/0.4497, allocations: 78.14 kB / 1.166 GB, free: 7.23 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.4499, allocations: 115.9 kB / 1.166 GB, free: 7.117 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003055/0.4529, allocations: 1.496 MB / 1.167 GB, free: 5.469 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.453, allocations: 7.938 kB / 1.167 GB, free: 5.461 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.4531, allocations: 47.98 kB / 1.167 GB, free: 5.414 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.4531, allocations: 28 kB / 1.167 GB, free: 5.387 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003324/0.4564, allocations: 1.221 MB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008871/0.4653, allocations: 8.357 MB / 1.177 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003277/0.4686, allocations: 1.098 MB / 1.178 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.4702, allocations: 0.5629 MB / 1.178 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002788/0.473, allocations: 2.898 MB / 1.181 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001888/0.4749, allocations: 0.6644 MB / 1.182 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=85): time 3.437e-06/0.4749, allocations: 0 / 1.182 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of matching and sorting (n=85): time 0.005452/0.4804, allocations: 1.786 MB / 1.184 GB, free: 3.512 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.4805, allocations: 68.34 kB / 1.184 GB, free: 3.434 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002138/0.4826, allocations: 1.489 MB / 1.185 GB, free: 1.938 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.284e-05/0.4827, allocations: 45.7 kB / 1.185 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007347/0.4834, allocations: 0.7868 MB / 1.186 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002989/0.4837, allocations: 291.8 kB / 1.186 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003669/0.4841, allocations: 230.7 kB / 1.186 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001993/0.4843, allocations: 345.9 kB / 1.187 GB, free: 232 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.4859, allocations: 0.5217 MB / 1.187 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001899/0.4878, allocations: 0.9032 MB / 1.188 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003609/0.4914, allocations: 1.41 MB / 1.19 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.4914, allocations: 8 kB / 1.19 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004241/0.4957, allocations: 1.608 MB / 1.191 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.4957, allocations: 8.094 kB / 1.191 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.4958, allocations: 15.94 kB / 1.191 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.917e-05/0.4958, allocations: 16 kB / 1.191 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.4972, allocations: 343.8 kB / 1.191 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.123e-05/0.4972, allocations: 23.92 kB / 1.191 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.4988, allocations: 266.4 kB / 1.192 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.499, allocations: 67.91 kB / 1.192 GB, free: 10.71 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 140 * 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.0006173/0.4996, allocations: 343.6 kB / 1.192 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.4999, allocations: 165.9 kB / 1.192 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005114/0.505, allocations: 2.096 MB / 1.194 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-05/0.5051, allocations: 27.91 kB / 1.194 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5051, allocations: 0 / 1.194 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.5051, allocations: 3.984 kB / 1.194 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006692/0.5118, allocations: 3.283 MB / 1.198 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.5118, allocations: 4 kB / 1.198 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.513, allocations: 231.6 kB / 1.198 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.513, allocations: 4 kB / 1.198 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.65e-05/0.5131, allocations: 43.95 kB / 1.198 GB, free: 4.438 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.5131, allocations: 4 kB / 1.198 GB, free: 4.434 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5132, allocations: 3.938 kB / 1.198 GB, free: 4.43 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006465/0.5196, allocations: 2.685 MB / 1.2 GB, free: 1.707 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008151/0.5205, allocations: 390.3 kB / 1.201 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.5207, allocations: 27.98 kB / 1.201 GB, free: 1.277 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.5219, allocations: 155.8 kB / 1.201 GB, free: 1.125 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.522, allocations: 80.92 kB / 1.201 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.5222, allocations: 47.95 kB / 1.201 GB, free: 1 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001437/0.5236, allocations: 0.9987 MB / 1.202 GB, free: 8 kB / 0.9512 GB Notification: Performance of sort global known variables: time 6.21e-07/0.5236, allocations: 4 kB / 1.202 GB, free: 4 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001739/0.5254, allocations: 0.5383 MB / 1.203 GB, free: 15.46 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * When equations: 6 * 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.002496/0.5279, allocations: 0.8403 MB / 1.203 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004872/0.5328, allocations: 1.567 MB / 1.205 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5328, allocations: 0 / 1.205 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001976/0.5348, allocations: 0.8105 MB / 1.206 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003615/0.5384, allocations: 0.7414 MB / 1.207 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006681/0.5451, allocations: 3.727 MB / 1.21 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.5462, allocations: 1.301 MB / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001424/0.5477, allocations: 368.9 kB / 1.212 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004397/0.5481, allocations: 175.3 kB / 1.212 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of SimCode: time 7.01e-07/0.5481, allocations: 0 / 1.212 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of Templates: time 0.05859/0.6067, allocations: 31.99 MB / 1.243 GB, free: 6.52 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches