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.0008815/0.0008816, allocations: 97.78 kB / 16.02 MB, free: 76 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.001202/0.001202, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.388/1.388, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.651/2.651, allocations: 462.6 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003906, allocations: 14.42 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3502, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06109/0.4114, allocations: 59.75 MB / 1.118 GB, free: 9.039 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01808/0.4295, allocations: 11.93 MB / 1.129 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.4326, allocations: 55.62 kB / 1.129 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.4352, allocations: 0.5438 MB / 1.13 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006677/0.4419, allocations: 1.802 MB / 1.132 GB, free: 10.67 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003585/0.4455, allocations: 1.08 MB / 1.133 GB, free: 9.598 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005791/0.4513, allocations: 3.906 MB / 1.137 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002028/0.4533, allocations: 0.9022 MB / 1.137 GB, free: 4.75 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003137/0.4565, allocations: 1.124 MB / 1.138 GB, free: 3.621 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/0.4585, allocations: 0.8515 MB / 1.139 GB, free: 2.766 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0003618/0.4589, allocations: 44 kB / 1.139 GB, free: 2.723 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003434/0.4623, allocations: 1.325 MB / 1.141 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004326/0.4628, allocations: 214.9 kB / 1.141 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.4641, allocations: 0.6272 MB / 1.141 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002877/0.467, allocations: 1.684 MB / 1.143 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.467, allocations: 0 / 1.143 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4671, allocations: 0 / 1.143 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.944e-05/0.4671, allocations: 0 / 1.143 GB, free: 14.86 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.003521/0.4706, allocations: 1.49 MB / 1.145 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.4707, allocations: 15.97 kB / 1.145 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002332/0.473, allocations: 474.8 kB / 1.145 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.4754, allocations: 1.124 MB / 1.146 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/0.4758, allocations: 129.9 kB / 1.146 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.4759, allocations: 80 kB / 1.146 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.4781, allocations: 1.005 MB / 1.147 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.4782, allocations: 0 / 1.147 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.33e-05/0.4783, allocations: 32 kB / 1.147 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.4783, allocations: 24 kB / 1.147 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002454/0.4807, allocations: 0.9172 MB / 1.148 GB, free: 9.422 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.006577/0.4873, allocations: 4.898 MB / 1.153 GB, free: 4.164 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003622/0.491, allocations: 0.898 MB / 1.154 GB, free: 3.254 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007592/0.4917, allocations: 316.7 kB / 1.154 GB, free: 2.941 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007839/0.4925, allocations: 0.9064 MB / 1.155 GB, free: 1.832 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.4926, allocations: 42.5 kB / 1.155 GB, free: 1.781 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=43): time 2.325e-06/0.4926, allocations: 0 / 1.155 GB, free: 1.781 MB / 0.9044 GB Notification: Performance of matching and sorting (n=43): time 0.009117/0.5017, allocations: 2.16 MB / 1.157 GB, free: 15.59 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.5018, allocations: 59.36 kB / 1.157 GB, free: 15.52 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.5035, allocations: 1.055 MB / 1.158 GB, free: 14.45 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 9.918e-05/0.5036, allocations: 41.69 kB / 1.158 GB, free: 14.4 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004531/0.5041, allocations: 0.5234 MB / 1.159 GB, free: 13.88 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.5042, allocations: 145.9 kB / 1.159 GB, free: 13.73 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.904e-05/0.5043, allocations: 49.69 kB / 1.159 GB, free: 13.68 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5045, allocations: 326 kB / 1.159 GB, free: 13.35 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009241/0.5054, allocations: 328.9 kB / 1.16 GB, free: 13.03 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.5065, allocations: 0.5259 MB / 1.16 GB, free: 12.42 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001726/0.5082, allocations: 0.7474 MB / 1.161 GB, free: 11.61 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5082, allocations: 0 / 1.161 GB, free: 11.61 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002887/0.5111, allocations: 1.056 MB / 1.162 GB, free: 10.55 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001726/0.5113, allocations: 213.2 kB / 1.162 GB, free: 10.28 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.5113, allocations: 4 kB / 1.162 GB, free: 10.27 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.5127, allocations: 332.7 kB / 1.163 GB, free: 9.945 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005463/0.5133, allocations: 131.8 kB / 1.163 GB, free: 9.816 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.5149, allocations: 0.9412 MB / 1.164 GB, free: 8.852 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.5163, allocations: 199.3 kB / 1.164 GB, free: 8.656 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.332e-05/0.5164, allocations: 27.98 kB / 1.164 GB, free: 8.629 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.5164, allocations: 4 kB / 1.164 GB, free: 8.625 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002552/0.519, allocations: 0.91 MB / 1.165 GB, free: 7.711 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.519, allocations: 4 kB / 1.165 GB, free: 7.707 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.5202, allocations: 328.9 kB / 1.165 GB, free: 7.383 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005538/0.5207, allocations: 131.8 kB / 1.165 GB, free: 7.254 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.5223, allocations: 0.9425 MB / 1.166 GB, free: 6.285 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.5236, allocations: 167.4 kB / 1.166 GB, free: 6.121 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.295e-05/0.5236, allocations: 27.98 kB / 1.166 GB, free: 6.094 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.0006383/0.5243, allocations: 360.8 kB / 1.167 GB, free: 5.73 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.5246, allocations: 110.8 kB / 1.167 GB, free: 5.621 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004083/0.5287, allocations: 1.195 MB / 1.168 GB, free: 4.414 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/0.5287, allocations: 12 kB / 1.168 GB, free: 4.402 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.5287, allocations: 0 / 1.168 GB, free: 4.402 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.5287, allocations: 7.922 kB / 1.168 GB, free: 4.395 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005956/0.5347, allocations: 2.257 MB / 1.17 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.5347, allocations: 4 kB / 1.17 GB, free: 2.051 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.535, allocations: 67.89 kB / 1.17 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.5362, allocations: 321.9 kB / 1.17 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.611e-05/0.5362, allocations: 16 kB / 1.17 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.5379, allocations: 0.9737 MB / 1.171 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/0.5379, allocations: 0 / 1.171 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004002/0.5419, allocations: 1.249 MB / 1.173 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006902/0.5426, allocations: 287.4 kB / 1.173 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002842/0.5429, allocations: 11.98 kB / 1.173 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.544, allocations: 119.7 kB / 1.173 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.648e-05/0.5441, allocations: 39.89 kB / 1.173 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.559e-05/0.5442, allocations: 23.98 kB / 1.173 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001498/0.5457, allocations: 0.7428 MB / 1.174 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2e-07/0.5457, allocations: 0 / 1.174 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001918/0.5476, allocations: 0.5575 MB / 1.174 GB, free: 13.55 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.0009647/0.5486, allocations: 384.4 kB / 1.175 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003419/0.552, allocations: 1.172 MB / 1.176 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.552, allocations: 0 / 1.176 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.5531, allocations: 362.5 kB / 1.176 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003102/0.5562, allocations: 0.4999 MB / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006225/0.5624, allocations: 2.579 MB / 1.179 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007461/0.5632, allocations: 1.054 MB / 1.18 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003001/0.5635, allocations: 91.34 kB / 1.18 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of SimCode: time 7.01e-07/0.5635, allocations: 0 / 1.18 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of Templates: time 0.03616/0.5997, allocations: 23.66 MB / 1.203 GB, free: 15.82 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/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