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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001008/0.001008, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005895/0.005895, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.41/1.41, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.739/2.739, allocations: 462.7 MB / 0.7364 GB, free: 344 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0005372/0.0005373, allocations: 10.53 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3666, allocations: 159.6 MB / 1.059 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05609/0.4228, allocations: 59.75 MB / 1.117 GB, free: 9.605 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01561/0.4384, allocations: 11.92 MB / 1.129 GB, free: 13.64 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002286/0.4408, allocations: 47.69 kB / 1.129 GB, free: 13.6 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002139/0.4429, allocations: 0.5555 MB / 1.129 GB, free: 13.04 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007111/0.45, allocations: 1.8 MB / 1.131 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.4531, allocations: 1.084 MB / 1.132 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004854/0.4579, allocations: 3.893 MB / 1.136 GB, free: 6.258 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.4593, allocations: 0.9022 MB / 1.137 GB, free: 5.324 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002058/0.4614, allocations: 1.12 MB / 1.138 GB, free: 4.199 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.4624, allocations: 0.8554 MB / 1.139 GB, free: 3.34 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.4625, allocations: 40 kB / 1.139 GB, free: 3.301 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002481/0.465, allocations: 1.329 MB / 1.14 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.4653, allocations: 210.9 kB / 1.14 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0005856/0.4659, allocations: 0.6389 MB / 1.141 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002487/0.4683, allocations: 2.177 MB / 1.143 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4684, allocations: 4 kB / 1.143 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.412e-06/0.4684, allocations: 0 / 1.143 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.452e-05/0.4684, allocations: 0 / 1.143 GB, free: 14.93 MB / 0.9044 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.002479/0.4709, allocations: 1.481 MB / 1.144 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.4709, allocations: 8.031 kB / 1.144 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002199/0.4731, allocations: 474.8 kB / 1.145 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.4751, allocations: 1.132 MB / 1.146 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003571/0.4754, allocations: 121.9 kB / 1.146 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.4756, allocations: 88 kB / 1.146 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.4775, allocations: 1.005 MB / 1.147 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.4776, allocations: 0 / 1.147 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-05/0.4776, allocations: 35.94 kB / 1.147 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.4777, allocations: 19.94 kB / 1.147 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002335/0.48, allocations: 0.929 MB / 1.148 GB, free: 9.488 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.005966/0.486, allocations: 4.903 MB / 1.153 GB, free: 4.227 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00359/0.4896, allocations: 0.8936 MB / 1.154 GB, free: 3.32 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007654/0.4904, allocations: 322.5 kB / 1.154 GB, free: 3.004 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005933/0.491, allocations: 0.9064 MB / 1.155 GB, free: 1.895 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.491, allocations: 42.5 kB / 1.155 GB, free: 1.844 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=43): time 2.585e-06/0.491, allocations: 4 kB / 1.155 GB, free: 1.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=43): time 0.008946/0.5, allocations: 2.152 MB / 1.157 GB, free: 15.66 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.5, allocations: 59.36 kB / 1.157 GB, free: 15.59 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.5016, allocations: 1.051 MB / 1.158 GB, free: 14.52 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.715e-05/0.5016, allocations: 41.69 kB / 1.158 GB, free: 14.47 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000397/0.502, allocations: 0.5195 MB / 1.159 GB, free: 13.95 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.5022, allocations: 153.8 kB / 1.159 GB, free: 13.8 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.52e-05/0.5023, allocations: 53.62 kB / 1.159 GB, free: 13.74 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.5024, allocations: 326 kB / 1.159 GB, free: 13.41 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009563/0.5034, allocations: 320.9 kB / 1.16 GB, free: 13.1 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.5045, allocations: 0.5376 MB / 1.16 GB, free: 12.48 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.5064, allocations: 0.7318 MB / 1.161 GB, free: 11.69 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.5064, allocations: 0 / 1.161 GB, free: 11.69 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002874/0.5093, allocations: 1.052 MB / 1.162 GB, free: 10.62 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.5094, allocations: 213.6 kB / 1.162 GB, free: 10.36 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.5095, allocations: 4 kB / 1.162 GB, free: 10.35 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.5109, allocations: 336.7 kB / 1.162 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/0.5114, allocations: 123.8 kB / 1.162 GB, free: 9.898 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.5129, allocations: 0.9425 MB / 1.163 GB, free: 8.93 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.5142, allocations: 191.3 kB / 1.164 GB, free: 8.742 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.344e-05/0.5142, allocations: 27.98 kB / 1.164 GB, free: 8.715 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 8.166e-06/0.5143, allocations: 4 kB / 1.164 GB, free: 8.711 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002436/0.5167, allocations: 0.922 MB / 1.165 GB, free: 7.785 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.5167, allocations: 4 kB / 1.165 GB, free: 7.781 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.5178, allocations: 335 kB / 1.165 GB, free: 7.453 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005235/0.5184, allocations: 119.9 kB / 1.165 GB, free: 7.336 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.5198, allocations: 0.9347 MB / 1.166 GB, free: 6.375 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.5209, allocations: 171.4 kB / 1.166 GB, free: 6.207 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.521, allocations: 31.92 kB / 1.166 GB, free: 6.176 MB / 0.92 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.0005319/0.5215, allocations: 360.8 kB / 1.166 GB, free: 5.812 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.5217, allocations: 110.7 kB / 1.167 GB, free: 5.703 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00394/0.5256, allocations: 1.195 MB / 1.168 GB, free: 4.496 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.5257, allocations: 4 kB / 1.168 GB, free: 4.492 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.5257, allocations: 0 / 1.168 GB, free: 4.492 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.5257, allocations: 7.922 kB / 1.168 GB, free: 4.484 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005358/0.5311, allocations: 2.269 MB / 1.17 GB, free: 2.133 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.5311, allocations: 4 kB / 1.17 GB, free: 2.129 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003176/0.5314, allocations: 59.95 kB / 1.17 GB, free: 2.07 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.5327, allocations: 332.7 kB / 1.17 GB, free: 1.742 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.88e-05/0.5327, allocations: 16 kB / 1.17 GB, free: 1.727 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/0.5345, allocations: 0.9713 MB / 1.171 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.5346, allocations: 15.98 kB / 1.171 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004457/0.539, allocations: 1.253 MB / 1.172 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009365/0.54, allocations: 283.4 kB / 1.173 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/0.5401, allocations: 15.98 kB / 1.173 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009511/0.5411, allocations: 115.7 kB / 1.173 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5412, allocations: 31.95 kB / 1.173 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-05/0.5413, allocations: 23.98 kB / 1.173 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001228/0.5425, allocations: 0.7467 MB / 1.174 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of sort global known variables: time 5.31e-07/0.5425, allocations: 0 / 1.174 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001572/0.5441, allocations: 0.5536 MB / 1.174 GB, free: 13.62 MB / 0.9356 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.0008238/0.5449, allocations: 375.4 kB / 1.175 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003232/0.5482, allocations: 1.172 MB / 1.176 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5482, allocations: 0 / 1.176 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0009114/0.5491, allocations: 375.1 kB / 1.176 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002824/0.5519, allocations: 0.5025 MB / 1.177 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005414/0.5574, allocations: 2.534 MB / 1.179 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005723/0.558, allocations: 1.065 MB / 1.18 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0009224/0.5589, allocations: 216.7 kB / 1.18 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.5591, allocations: 79.42 kB / 1.18 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of SimCode: time 7.12e-07/0.5591, allocations: 0 / 1.18 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of Templates: time 0.03861/0.5977, allocations: 23.89 MB / 1.204 GB, free: 15.61 MB / 0.9669 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/jenkins/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