Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.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.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.Example3") translateModel(Buildings.Fluid.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.Example3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 108 kB / 15.6 MB, free: 132 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.001579/0.001579, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.72/2.72, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.62 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3253, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example3): time 0.03314/0.3585, allocations: 33.21 MB / 1.101 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01681/0.3753, allocations: 12.31 MB / 1.113 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001759/0.3771, allocations: 51.75 kB / 1.113 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.007043/0.3842, allocations: 3.967 MB / 1.117 GB, free: 8.754 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003685/0.3879, allocations: 1.633 MB / 1.118 GB, free: 7.113 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003164/0.391, allocations: 1.443 MB / 1.12 GB, free: 5.676 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.008539/0.3996, allocations: 7.662 MB / 1.127 GB, free: 14 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002377/0.402, allocations: 2.09 MB / 1.129 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00342/0.4054, allocations: 1.876 MB / 1.131 GB, free: 10 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001664/0.4071, allocations: 1.396 MB / 1.132 GB, free: 8.598 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002308/0.4073, allocations: 144 kB / 1.132 GB, free: 8.457 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002498/0.4098, allocations: 1.334 MB / 1.134 GB, free: 7.121 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004882/0.4103, allocations: 0.5917 MB / 1.134 GB, free: 6.527 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.4114, allocations: 1.197 MB / 1.135 GB, free: 5.324 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.003463/0.4149, allocations: 3.458 MB / 1.139 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.4149, allocations: 0 / 1.139 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4149, allocations: 0 / 1.139 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.866e-05/0.4149, allocations: 3.984 kB / 1.139 GB, free: 1.852 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.003672/0.4186, allocations: 2.788 MB / 1.142 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.4187, allocations: 12.03 kB / 1.142 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001825/0.4205, allocations: 436.6 kB / 1.142 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003679/0.4242, allocations: 2.626 MB / 1.145 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.405e-05/0.4243, allocations: 86.27 kB / 1.145 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.4245, allocations: 119.8 kB / 1.145 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00206/0.4265, allocations: 1.319 MB / 1.146 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.4266, allocations: 4 kB / 1.146 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.514e-05/0.4267, allocations: 39.98 kB / 1.146 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.4267, allocations: 31.94 kB / 1.146 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.4288, allocations: 1.03 MB / 1.147 GB, free: 9.137 MB / 0.9044 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.007262/0.436, allocations: 6.921 MB / 1.154 GB, free: 1.789 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.4374, allocations: 0.6014 MB / 1.154 GB, free: 1.18 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007271/0.4381, allocations: 396.7 kB / 1.155 GB, free: 0.793 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00235/0.4405, allocations: 1.755 MB / 1.157 GB, free: 14.9 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007613/0.4413, allocations: 370.9 kB / 1.157 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003481/0.4416, allocations: 99.11 kB / 1.157 GB, free: 14.43 MB / 0.92 GB Notification: Performance of pre-optimization done (n=44): time 1.914e-06/0.4417, allocations: 0 / 1.157 GB, free: 14.43 MB / 0.92 GB Notification: Performance of matching and sorting (n=44): time 0.003495/0.4452, allocations: 1.38 MB / 1.158 GB, free: 13.02 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.4452, allocations: 59.36 kB / 1.158 GB, free: 12.95 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.4478, allocations: 2.364 MB / 1.161 GB, free: 10.56 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.4478, allocations: 45.69 kB / 1.161 GB, free: 10.51 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000782/0.4486, allocations: 0.9924 MB / 1.162 GB, free: 9.508 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.4488, allocations: 153.9 kB / 1.162 GB, free: 9.355 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003556/0.4491, allocations: 302.5 kB / 1.162 GB, free: 9.055 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4492, allocations: 357.9 kB / 1.162 GB, free: 8.699 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008808/0.4501, allocations: 0.4978 MB / 1.163 GB, free: 8.195 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.4513, allocations: 0.9931 MB / 1.164 GB, free: 6.984 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/0.4533, allocations: 1.347 MB / 1.165 GB, free: 5.48 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.4533, allocations: 4 kB / 1.165 GB, free: 5.477 MB / 0.92 GB Notification: Performance of matching and sorting (n=164) (initialization): time 0.003215/0.4566, allocations: 1.799 MB / 1.167 GB, free: 3.656 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.645e-05/0.4566, allocations: 41.7 kB / 1.167 GB, free: 3.609 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.4566, allocations: 12 kB / 1.167 GB, free: 3.598 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006441/0.4573, allocations: 195.8 kB / 1.167 GB, free: 3.406 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007863/0.4581, allocations: 231.6 kB / 1.167 GB, free: 3.18 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006109/0.4587, allocations: 0.7591 MB / 1.168 GB, free: 2.395 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.4598, allocations: 80.55 kB / 1.168 GB, free: 2.316 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.4599, allocations: 55.98 kB / 1.168 GB, free: 2.262 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001515/0.4615, allocations: 1.022 MB / 1.169 GB, free: 1.234 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001111/0.4626, allocations: 0.9736 MB / 1.17 GB, free: 52 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001768/0.4644, allocations: 1.311 MB / 1.172 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.811e-06/0.4644, allocations: 4 kB / 1.172 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of matching and sorting (n=164) (initialization_lambda0): time 0.002777/0.4672, allocations: 1.793 MB / 1.173 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.4672, allocations: 37.69 kB / 1.173 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.4672, allocations: 15.94 kB / 1.173 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000215/0.4674, allocations: 121.5 kB / 1.173 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007479/0.4682, allocations: 223.6 kB / 1.174 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.4703, allocations: 2.328 MB / 1.176 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.4716, allocations: 80.36 kB / 1.176 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.719e-05/0.4717, allocations: 59.98 kB / 1.176 GB, free: 9.738 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y,mergeDp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 114 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003423/0.4721, allocations: 252 kB / 1.176 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002777/0.4723, allocations: 209.3 kB / 1.177 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.4746, allocations: 1.049 MB / 1.178 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4746, allocations: 4 kB / 1.178 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.4746, allocations: 0 / 1.178 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001646/0.4763, allocations: 0.97 MB / 1.179 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/0.48, allocations: 2.312 MB / 1.181 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.48, allocations: 0 / 1.181 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/0.4805, allocations: 99.91 kB / 1.181 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002881/0.4808, allocations: 124.1 kB / 1.181 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.983e-05/0.4808, allocations: 11.98 kB / 1.181 GB, free: 4.559 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005322/0.4814, allocations: 0.7435 MB / 1.182 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4814, allocations: 4.031 kB / 1.182 GB, free: 3.785 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.484, allocations: 1.413 MB / 1.183 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005933/0.4846, allocations: 358.3 kB / 1.183 GB, free: 1.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002991/0.4849, allocations: 8 kB / 1.183 GB, free: 1.969 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008227/0.4857, allocations: 39.95 kB / 1.184 GB, free: 1.93 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.4859, allocations: 44.33 kB / 1.184 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.367e-05/0.4859, allocations: 28.03 kB / 1.184 GB, free: 1.859 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002315/0.4882, allocations: 1.611 MB / 1.185 GB, free: 244 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4883, allocations: 3.938 kB / 1.185 GB, free: 240 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002552/0.4908, allocations: 0.9477 MB / 1.186 GB, free: 15.29 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001237/0.4921, allocations: 0.5178 MB / 1.187 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.003702/0.4958, allocations: 2.061 MB / 1.189 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4958, allocations: 4.062 kB / 1.189 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007838/0.4966, allocations: 342.3 kB / 1.189 GB, free: 12.33 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003733/0.5003, allocations: 0.9796 MB / 1.19 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006275/0.5066, allocations: 3.703 MB / 1.194 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.5078, allocations: 1.674 MB / 1.195 GB, free: 5.926 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001957/0.5097, allocations: 0.5514 MB / 1.196 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003977/0.5101, allocations: 163.4 kB / 1.196 GB, free: 5.211 MB / 0.9512 GB Notification: Performance of SimCode: time 8.52e-07/0.5101, allocations: 0 / 1.196 GB, free: 5.211 MB / 0.9512 GB Notification: Performance of Templates: time 0.06102/0.5712, allocations: 39.43 MB / 1.234 GB, free: 14.25 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.Example3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.Example3_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_Example3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches