Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001066/0.001066, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001467/0.001467, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.477/2.477, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005945/0.0005946, allocations: 11.94 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7047/0.7053, allocations: 142.4 MB / 0.9544 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05228/0.7577, allocations: 56.53 MB / 1.01 GB, free: 6.875 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01515/0.7729, allocations: 11.23 MB / 1.021 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001981/0.7749, allocations: 51.62 kB / 1.021 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.7764, allocations: 460.9 kB / 1.021 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004863/0.7813, allocations: 1.527 MB / 1.023 GB, free: 9.586 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002599/0.7839, allocations: 0.8621 MB / 1.023 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00404/0.788, allocations: 3.383 MB / 1.027 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.7892, allocations: 0.7976 MB / 1.027 GB, free: 4.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.7915, allocations: 1.038 MB / 1.029 GB, free: 3.477 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001253/0.7927, allocations: 0.801 MB / 1.029 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.7929, allocations: 40 kB / 1.029 GB, free: 2.633 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002464/0.7953, allocations: 1.088 MB / 1.03 GB, free: 1.543 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.7956, allocations: 199 kB / 1.031 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000372/0.796, allocations: 293 kB / 1.031 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002175/0.7981, allocations: 1.619 MB / 1.032 GB, free: 15.43 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.7982, allocations: 0 / 1.032 GB, free: 15.43 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.694e-06/0.7982, allocations: 4 kB / 1.032 GB, free: 15.43 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.206e-05/0.7982, allocations: 0 / 1.032 GB, free: 15.43 MB / 0.795 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.002628/0.8008, allocations: 1.497 MB / 1.034 GB, free: 13.88 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.8009, allocations: 8.031 kB / 1.034 GB, free: 13.87 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001906/0.8028, allocations: 473.9 kB / 1.034 GB, free: 13.4 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.8047, allocations: 1.097 MB / 1.035 GB, free: 12.25 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003162/0.805, allocations: 137.9 kB / 1.036 GB, free: 12.11 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.8052, allocations: 76 kB / 1.036 GB, free: 12.04 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/0.807, allocations: 1.001 MB / 1.037 GB, free: 10.99 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.807, allocations: 0 / 1.037 GB, free: 10.99 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.107e-05/0.8071, allocations: 32 kB / 1.037 GB, free: 10.96 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.8071, allocations: 23.94 kB / 1.037 GB, free: 10.94 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002118/0.8093, allocations: 0.9172 MB / 1.038 GB, free: 10.02 MB / 0.795 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.005672/0.8149, allocations: 4.879 MB / 1.042 GB, free: 4.781 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003036/0.818, allocations: 0.8949 MB / 1.043 GB, free: 3.879 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006661/0.8187, allocations: 316.7 kB / 1.044 GB, free: 3.566 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005988/0.8193, allocations: 0.9064 MB / 1.044 GB, free: 2.457 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.8193, allocations: 38.56 kB / 1.044 GB, free: 2.41 MB / 0.795 GB Notification: Performance of pre-optimization done (n=43): time 2.084e-06/0.8193, allocations: 0 / 1.044 GB, free: 2.41 MB / 0.795 GB Notification: Performance of matching and sorting (n=43): time 0.009927/0.8293, allocations: 2.146 MB / 1.047 GB, free: 240 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.8294, allocations: 59.36 kB / 1.047 GB, free: 168 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002415/0.8318, allocations: 1.051 MB / 1.048 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.695e-05/0.8319, allocations: 37.7 kB / 1.048 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006295/0.8326, allocations: 0.5195 MB / 1.048 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.8328, allocations: 149.8 kB / 1.048 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.431e-05/0.8328, allocations: 12 kB / 1.048 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.833, allocations: 326 kB / 1.049 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.8343, allocations: 324.9 kB / 1.049 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.8359, allocations: 0.522 MB / 1.049 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.8373, allocations: 365.3 kB / 1.05 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.8374, allocations: 3.938 kB / 1.05 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005471/0.8428, allocations: 1.22 MB / 1.051 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.00019/0.8431, allocations: 217 kB / 1.051 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.8431, allocations: 7.984 kB / 1.051 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001819/0.8449, allocations: 324.5 kB / 1.052 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000807/0.8457, allocations: 123.9 kB / 1.052 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/0.8479, allocations: 0.9402 MB / 1.053 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/0.8499, allocations: 192.6 kB / 1.053 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.85, allocations: 39.97 kB / 1.053 GB, free: 9.617 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.85, allocations: 4 kB / 1.053 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004837/0.8549, allocations: 1.074 MB / 1.054 GB, free: 8.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.8549, allocations: 7.953 kB / 1.054 GB, free: 8.527 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/0.8565, allocations: 325 kB / 1.054 GB, free: 8.207 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/0.8573, allocations: 135.8 kB / 1.054 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.8594, allocations: 0.9249 MB / 1.055 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.8612, allocations: 175.3 kB / 1.055 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-05/0.8614, allocations: 28 kB / 1.055 GB, free: 6.926 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0007437/0.8621, allocations: 357.5 kB / 1.056 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002657/0.8624, allocations: 106.7 kB / 1.056 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005529/0.8679, allocations: 1.199 MB / 1.057 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-05/0.868, allocations: 7.984 kB / 1.057 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.868, allocations: 0 / 1.057 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.868, allocations: 4.094 kB / 1.057 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007442/0.8754, allocations: 2.269 MB / 1.059 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.667e-05/0.8755, allocations: 4 kB / 1.059 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004255/0.8759, allocations: 63.89 kB / 1.059 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001492/0.8774, allocations: 326.6 kB / 1.06 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.8775, allocations: 19.98 kB / 1.06 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/0.8796, allocations: 0.9621 MB / 1.061 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.8796, allocations: 0 / 1.061 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004936/0.8845, allocations: 1.253 MB / 1.062 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007387/0.8853, allocations: 283.4 kB / 1.062 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.8855, allocations: 11.95 kB / 1.062 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.8868, allocations: 123.7 kB / 1.062 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.8869, allocations: 35.89 kB / 1.062 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.375e-05/0.887, allocations: 23.98 kB / 1.062 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001694/0.8887, allocations: 0.7311 MB / 1.063 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.51e-07/0.8887, allocations: 0 / 1.063 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002161/0.8909, allocations: 0.5574 MB / 1.063 GB, free: 14.4 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009163/0.8918, allocations: 376.7 kB / 1.064 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.004363/0.8962, allocations: 1.156 MB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.8962, allocations: 3.938 kB / 1.065 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.8974, allocations: 372.4 kB / 1.065 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003534/0.901, allocations: 0.5046 MB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007378/0.9084, allocations: 2.479 MB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008115/0.9092, allocations: 1.054 MB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001484/0.9107, allocations: 220.6 kB / 1.069 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.911, allocations: 79.42 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of SimCode: time 8.92e-07/0.911, allocations: 0 / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of Templates: time 0.05326/0.9643, allocations: 22.98 MB / 1.092 GB, free: 1.391 MB / 0.8419 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches