Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001093, allocations: 92.16 kB / 16.02 MB, free: 80 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.001505/0.001505, allocations: 182.5 kB / 16.92 MB, free: 6.922 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.473/1.473, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.782/2.782, allocations: 443.2 MB / 0.7181 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003994/0.0003995, allocations: 10.84 kB / 0.8801 GB, free: 42.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.321, allocations: 155.2 MB / 1.032 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06225/0.3833, allocations: 59.76 MB / 1.09 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01743/0.4008, allocations: 11.91 MB / 1.102 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002334/0.4031, allocations: 51.62 kB / 1.102 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001926/0.4051, allocations: 0.5555 MB / 1.102 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.006015/0.4111, allocations: 1.8 MB / 1.104 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0033/0.4144, allocations: 1.084 MB / 1.105 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005795/0.4202, allocations: 3.886 MB / 1.109 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001743/0.422, allocations: 0.9061 MB / 1.11 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00286/0.4249, allocations: 1.124 MB / 1.111 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.4264, allocations: 0.8553 MB / 1.112 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.4265, allocations: 40 kB / 1.112 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003/0.4296, allocations: 1.325 MB / 1.113 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002994/0.4299, allocations: 210.9 kB / 1.113 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0008438/0.4307, allocations: 0.635 MB / 1.114 GB, free: 376 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002542/0.4333, allocations: 1.691 MB / 1.115 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4333, allocations: 0 / 1.115 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.903e-06/0.4333, allocations: 4 kB / 1.115 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.627e-05/0.4333, allocations: 0 / 1.115 GB, free: 14.67 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002999/0.4363, allocations: 1.485 MB / 1.117 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.4364, allocations: 12.03 kB / 1.117 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002232/0.4386, allocations: 466.9 kB / 1.117 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.441, allocations: 1.136 MB / 1.118 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003759/0.4414, allocations: 125.9 kB / 1.119 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.4415, allocations: 80 kB / 1.119 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.4437, allocations: 1.005 MB / 1.12 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.4437, allocations: 4 kB / 1.12 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.164e-05/0.4438, allocations: 32 kB / 1.12 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.4439, allocations: 20 kB / 1.12 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.4463, allocations: 0.9172 MB / 1.121 GB, free: 9.242 MB / 0.8731 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.00669/0.453, allocations: 4.906 MB / 1.125 GB, free: 3.973 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003521/0.4565, allocations: 0.9028 MB / 1.126 GB, free: 3.062 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007719/0.4573, allocations: 320.7 kB / 1.127 GB, free: 2.746 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007117/0.4581, allocations: 0.9063 MB / 1.127 GB, free: 1.637 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.4581, allocations: 38.5 kB / 1.127 GB, free: 1.59 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=43): time 2.775e-06/0.4581, allocations: 0 / 1.127 GB, free: 1.59 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.009047/0.4672, allocations: 2.164 MB / 1.13 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.4672, allocations: 55.41 kB / 1.13 GB, free: 15.33 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001669/0.4689, allocations: 1.059 MB / 1.131 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 8.039e-05/0.469, allocations: 33.7 kB / 1.131 GB, free: 14.21 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004461/0.4694, allocations: 0.5195 MB / 1.131 GB, free: 13.69 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.4696, allocations: 149.8 kB / 1.131 GB, free: 13.54 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.788e-05/0.4697, allocations: 49.69 kB / 1.131 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.4698, allocations: 326 kB / 1.132 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009124/0.4707, allocations: 324.9 kB / 1.132 GB, free: 12.85 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.4718, allocations: 0.5415 MB / 1.133 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.4735, allocations: 0.7319 MB / 1.133 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4736, allocations: 0 / 1.133 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002799/0.4764, allocations: 1.055 MB / 1.134 GB, free: 10.36 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.4765, allocations: 213.3 kB / 1.135 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.619e-06/0.4765, allocations: 4 kB / 1.135 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.4779, allocations: 344.5 kB / 1.135 GB, free: 9.75 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000543/0.4785, allocations: 127.8 kB / 1.135 GB, free: 9.625 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.48, allocations: 0.936 MB / 1.136 GB, free: 8.664 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.4814, allocations: 195.3 kB / 1.136 GB, free: 8.473 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.251e-05/0.4815, allocations: 27.98 kB / 1.136 GB, free: 8.445 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.4815, allocations: 5.406 kB / 1.136 GB, free: 8.441 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002458/0.484, allocations: 0.9103 MB / 1.137 GB, free: 7.527 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.484, allocations: 4 kB / 1.137 GB, free: 7.523 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.4852, allocations: 334.2 kB / 1.137 GB, free: 7.195 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/0.4857, allocations: 131.7 kB / 1.137 GB, free: 7.066 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.4872, allocations: 0.9364 MB / 1.138 GB, free: 6.105 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.4884, allocations: 167.4 kB / 1.139 GB, free: 5.941 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/0.4885, allocations: 27.98 kB / 1.139 GB, free: 5.914 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0005922/0.4891, allocations: 360.9 kB / 1.139 GB, free: 5.551 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.4893, allocations: 110.7 kB / 1.139 GB, free: 5.441 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004008/0.4933, allocations: 1.199 MB / 1.14 GB, free: 4.227 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.4933, allocations: 8 kB / 1.14 GB, free: 4.219 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.4933, allocations: 0 / 1.14 GB, free: 4.219 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.4933, allocations: 7.922 kB / 1.14 GB, free: 4.211 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005361/0.4987, allocations: 2.257 MB / 1.142 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.487e-06/0.4987, allocations: 4 kB / 1.142 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.499, allocations: 71.89 kB / 1.142 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.5001, allocations: 324.8 kB / 1.143 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.5002, allocations: 12 kB / 1.143 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.5017, allocations: 0.9748 MB / 1.144 GB, free: 476 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.5017, allocations: 0 / 1.144 GB, free: 476 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003847/0.5056, allocations: 1.257 MB / 1.145 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006091/0.5062, allocations: 279.4 kB / 1.145 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.5065, allocations: 23.92 kB / 1.145 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.5075, allocations: 119.7 kB / 1.145 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.815e-05/0.5076, allocations: 31.95 kB / 1.145 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.799e-05/0.5077, allocations: 23.98 kB / 1.145 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001388/0.5091, allocations: 0.7467 MB / 1.146 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.01e-07/0.5091, allocations: 0 / 1.146 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001804/0.5109, allocations: 0.5574 MB / 1.147 GB, free: 13.35 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009701/0.5119, allocations: 378.2 kB / 1.147 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003391/0.5153, allocations: 1.163 MB / 1.148 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.5153, allocations: 0 / 1.148 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0009458/0.5162, allocations: 372.4 kB / 1.149 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/0.5194, allocations: 0.4962 MB / 1.149 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006003/0.5254, allocations: 2.583 MB / 1.152 GB, free: 8.328 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000708/0.5261, allocations: 1.058 MB / 1.153 GB, free: 7.238 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.5264, allocations: 83.41 kB / 1.153 GB, free: 7.156 MB / 0.9044 GB Notification: Performance of SimCode: time 7.42e-07/0.5264, allocations: 0 / 1.153 GB, free: 7.156 MB / 0.9044 GB Notification: Performance of Templates: time 0.03581/0.5622, allocations: 23.66 MB / 1.176 GB, free: 15.63 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches