Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.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_y,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.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,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.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, 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.001373/0.001373, allocations: 182.4 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.369/1.369, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.733/2.733, allocations: 462.7 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004901/0.0004901, allocations: 11.69 kB / 0.9034 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3346, allocations: 159.6 MB / 1.059 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.07454/0.4092, allocations: 73.48 MB / 1.131 GB, free: 11.28 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0211/0.4303, allocations: 15.04 MB / 1.146 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003219/0.4336, allocations: 55.62 kB / 1.146 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002606/0.4362, allocations: 0.6682 MB / 1.146 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008144/0.4444, allocations: 2.378 MB / 1.149 GB, free: 9.082 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003666/0.4481, allocations: 1.277 MB / 1.15 GB, free: 7.816 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007155/0.4552, allocations: 5.569 MB / 1.155 GB, free: 2.238 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002309/0.4576, allocations: 1.159 MB / 1.157 GB, free: 1.043 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003229/0.4608, allocations: 1.322 MB / 1.158 GB, free: 15.71 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002374/0.4632, allocations: 1.147 MB / 1.159 GB, free: 14.56 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003801/0.4636, allocations: 56 kB / 1.159 GB, free: 14.51 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003384/0.467, allocations: 1.243 MB / 1.16 GB, free: 13.26 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005671/0.4676, allocations: 290.5 kB / 1.161 GB, free: 12.98 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001694/0.4693, allocations: 0.7983 MB / 1.161 GB, free: 12.17 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003374/0.4727, allocations: 2.151 MB / 1.163 GB, free: 10.01 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4727, allocations: 0 / 1.163 GB, free: 10.01 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.525e-06/0.4727, allocations: 0 / 1.163 GB, free: 10.01 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.147e-05/0.4728, allocations: 0 / 1.163 GB, free: 10.01 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.004091/0.4769, allocations: 1.787 MB / 1.165 GB, free: 8.16 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.477, allocations: 11.97 kB / 1.165 GB, free: 8.148 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008375/0.4778, allocations: 250.7 kB / 1.165 GB, free: 7.902 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002481/0.4803, allocations: 1.486 MB / 1.167 GB, free: 6.359 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.841e-05/0.4804, allocations: 74 kB / 1.167 GB, free: 6.289 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.4805, allocations: 111.9 kB / 1.167 GB, free: 6.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.4826, allocations: 1.116 MB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.4827, allocations: 0 / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.4828, allocations: 40 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.871e-05/0.4828, allocations: 27.98 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/0.4848, allocations: 0.9329 MB / 1.169 GB, free: 4.027 MB / 0.92 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.00616/0.491, allocations: 4.919 MB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.4925, allocations: 0.64 MB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007616/0.4933, allocations: 370.3 kB / 1.175 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007314/0.494, allocations: 0.8238 MB / 1.176 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.4941, allocations: 43.12 kB / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=61): time 3.186e-06/0.4941, allocations: 0 / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=61): time 0.007952/0.502, allocations: 1.896 MB / 1.178 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.5021, allocations: 59.91 kB / 1.178 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001916/0.504, allocations: 1.214 MB / 1.179 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.5042, allocations: 49.64 kB / 1.179 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005486/0.5047, allocations: 0.6026 MB / 1.179 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.505, allocations: 212.9 kB / 1.18 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.304e-05/0.5051, allocations: 65.67 kB / 1.18 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5052, allocations: 334 kB / 1.18 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007168/0.5059, allocations: 301.8 kB / 1.18 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008684/0.5068, allocations: 0.5031 MB / 1.181 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.5083, allocations: 0.7519 MB / 1.182 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.5084, allocations: 8 kB / 1.182 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005151/0.5135, allocations: 1.402 MB / 1.183 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001561/0.5137, allocations: 206.2 kB / 1.183 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.5137, allocations: 7.938 kB / 1.183 GB, free: 4.895 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006493/0.5144, allocations: 144.8 kB / 1.183 GB, free: 4.75 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006399/0.515, allocations: 163.8 kB / 1.183 GB, free: 4.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009258/0.5159, allocations: 0.72 MB / 1.184 GB, free: 3.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.5173, allocations: 167.1 kB / 1.184 GB, free: 3.68 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.5174, allocations: 35.97 kB / 1.184 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.198e-06/0.5175, allocations: 4 kB / 1.184 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004915/0.5224, allocations: 1.257 MB / 1.186 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.5224, allocations: 4 kB / 1.186 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000555/0.523, allocations: 153.1 kB / 1.186 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006683/0.5237, allocations: 163.8 kB / 1.186 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000907/0.5246, allocations: 0.7162 MB / 1.187 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.526, allocations: 157.4 kB / 1.187 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.5261, allocations: 35.98 kB / 1.187 GB, free: 1.133 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0007732/0.5269, allocations: 420.9 kB / 1.187 GB, free: 0.7109 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/0.5273, allocations: 134.3 kB / 1.187 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005243/0.5325, allocations: 1.4 MB / 1.189 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/0.5326, allocations: 12 kB / 1.189 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.001e-05/0.5326, allocations: 4 kB / 1.189 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004643/0.5373, allocations: 1.244 MB / 1.19 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007883/0.5452, allocations: 2.746 MB / 1.193 GB, free: 11 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.5452, allocations: 4 kB / 1.193 GB, free: 11 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.5458, allocations: 124.2 kB / 1.193 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005445/0.5463, allocations: 132.8 kB / 1.193 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-05/0.5464, allocations: 19.98 kB / 1.193 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005264/0.5517, allocations: 2.49 MB / 1.195 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.5517, allocations: 4 kB / 1.195 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006068/0.5578, allocations: 1.852 MB / 1.197 GB, free: 6.164 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000898/0.5587, allocations: 327.1 kB / 1.197 GB, free: 5.824 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003558/0.5591, allocations: 27.92 kB / 1.197 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.5603, allocations: 91.91 kB / 1.198 GB, free: 5.707 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.5604, allocations: 56.25 kB / 1.198 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-05/0.5605, allocations: 36.08 kB / 1.198 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001624/0.5622, allocations: 0.8739 MB / 1.198 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5622, allocations: 0 / 1.198 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002434/0.5646, allocations: 0.7095 MB / 1.199 GB, free: 4.031 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001153/0.5658, allocations: 454.9 kB / 1.2 GB, free: 3.582 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002986/0.5688, allocations: 1.172 MB / 1.201 GB, free: 2.406 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/0.5688, allocations: 4 kB / 1.201 GB, free: 2.402 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.5705, allocations: 0.5956 MB / 1.201 GB, free: 1.793 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004858/0.5753, allocations: 0.7872 MB / 1.202 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004808/0.5802, allocations: 2.856 MB / 1.205 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009288/0.5811, allocations: 1.165 MB / 1.206 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000428/0.5816, allocations: 119.4 kB / 1.206 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of SimCode: time 8.81e-07/0.5816, allocations: 0 / 1.206 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of Templates: time 0.04622/0.6278, allocations: 30.7 MB / 1.236 GB, free: 14.24 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_Carnot_y.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches