Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001348/0.001348, allocations: 98.88 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.001793/0.001793, allocations: 182.8 kB / 16.92 MB, free: 6.918 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.419/1.419, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.647/2.647, allocations: 437.8 MB / 0.7128 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003822, allocations: 8 kB / 0.8735 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7715/0.7719, allocations: 153.8 MB / 1.024 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06387/0.8359, allocations: 59.76 MB / 1.082 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01937/0.8553, allocations: 11.92 MB / 1.094 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002892/0.8582, allocations: 55.62 kB / 1.094 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002304/0.8606, allocations: 0.5516 MB / 1.094 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006468/0.8671, allocations: 1.808 MB / 1.096 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003607/0.8707, allocations: 1.075 MB / 1.097 GB, free: 4.5 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005661/0.8764, allocations: 3.89 MB / 1.101 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001992/0.8784, allocations: 0.9079 MB / 1.102 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002976/0.8814, allocations: 1.123 MB / 1.103 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001856/0.8833, allocations: 0.8476 MB / 1.104 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003305/0.8836, allocations: 47.98 kB / 1.104 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003323/0.8869, allocations: 1.329 MB / 1.105 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004546/0.8874, allocations: 214.8 kB / 1.105 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001375/0.8888, allocations: 0.6272 MB / 1.106 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002793/0.8916, allocations: 1.687 MB / 1.108 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.8916, allocations: 4 kB / 1.108 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.976e-06/0.8916, allocations: 0 / 1.108 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.805e-05/0.8917, allocations: 0 / 1.108 GB, free: 9.754 MB / 0.8575 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.003643/0.8954, allocations: 1.474 MB / 1.109 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.8954, allocations: 12.03 kB / 1.109 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002554/0.898, allocations: 474.8 kB / 1.109 GB, free: 7.746 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002858/0.9009, allocations: 1.128 MB / 1.111 GB, free: 6.559 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003922/0.9013, allocations: 129.9 kB / 1.111 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/0.9015, allocations: 80 kB / 1.111 GB, free: 6.355 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.9039, allocations: 1.009 MB / 1.112 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.9039, allocations: 0 / 1.112 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.21e-05/0.904, allocations: 32 kB / 1.112 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.9041, allocations: 20 kB / 1.112 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002548/0.9066, allocations: 0.9211 MB / 1.113 GB, free: 4.332 MB / 0.8575 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.008081/0.9147, allocations: 4.89 MB / 1.117 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003659/0.9184, allocations: 0.9156 MB / 1.118 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008246/0.9193, allocations: 320.7 kB / 1.119 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007124/0.92, allocations: 0.9102 MB / 1.12 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.9201, allocations: 38.5 kB / 1.12 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=43): time 3.026e-06/0.9201, allocations: 0 / 1.12 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.00936/0.9294, allocations: 2.157 MB / 1.122 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.9295, allocations: 55.41 kB / 1.122 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.9315, allocations: 1.051 MB / 1.123 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.551e-05/0.9316, allocations: 37.7 kB / 1.123 GB, free: 9.32 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004818/0.9321, allocations: 0.5234 MB / 1.123 GB, free: 8.793 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.9323, allocations: 153.8 kB / 1.123 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/0.9324, allocations: 53.69 kB / 1.123 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.9325, allocations: 322 kB / 1.124 GB, free: 8.262 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009655/0.9335, allocations: 324.9 kB / 1.124 GB, free: 7.945 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.9346, allocations: 0.5415 MB / 1.125 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001772/0.9364, allocations: 0.7396 MB / 1.125 GB, free: 6.52 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.9364, allocations: 0 / 1.125 GB, free: 6.52 MB / 0.8731 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00303/0.9394, allocations: 1.052 MB / 1.126 GB, free: 5.457 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.9396, allocations: 213.3 kB / 1.127 GB, free: 5.188 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.9397, allocations: 4 kB / 1.127 GB, free: 5.184 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.9411, allocations: 332.5 kB / 1.127 GB, free: 4.855 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005444/0.9416, allocations: 127.8 kB / 1.127 GB, free: 4.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.9433, allocations: 0.9399 MB / 1.128 GB, free: 3.766 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.9448, allocations: 195.3 kB / 1.128 GB, free: 3.574 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.9449, allocations: 27.98 kB / 1.128 GB, free: 3.547 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.9449, allocations: 4 kB / 1.128 GB, free: 3.543 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002554/0.9475, allocations: 0.9182 MB / 1.129 GB, free: 2.621 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.9475, allocations: 8 kB / 1.129 GB, free: 2.613 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.9487, allocations: 325 kB / 1.129 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005287/0.9492, allocations: 135.7 kB / 1.129 GB, free: 2.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.9508, allocations: 0.9369 MB / 1.13 GB, free: 1.199 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.9521, allocations: 167.4 kB / 1.131 GB, free: 1.035 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.294e-05/0.9522, allocations: 27.98 kB / 1.131 GB, free: 1.008 MB / 0.8731 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.0006809/0.9529, allocations: 354.2 kB / 1.131 GB, free: 0.6523 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/0.9532, allocations: 114.6 kB / 1.131 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004154/0.9574, allocations: 1.191 MB / 1.132 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.9574, allocations: 8 kB / 1.132 GB, free: 15.33 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.9575, allocations: 0 / 1.132 GB, free: 15.33 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.9575, allocations: 7.922 kB / 1.132 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005815/0.9633, allocations: 2.269 MB / 1.134 GB, free: 12.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.9633, allocations: 0 / 1.134 GB, free: 12.96 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.9636, allocations: 71.89 kB / 1.135 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.9648, allocations: 326.2 kB / 1.135 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.61e-05/0.9648, allocations: 16 kB / 1.135 GB, free: 12.56 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.9664, allocations: 0.9745 MB / 1.136 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.9664, allocations: 0 / 1.136 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00396/0.9704, allocations: 1.249 MB / 1.137 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007183/0.9711, allocations: 295.3 kB / 1.137 GB, free: 9.957 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002913/0.9715, allocations: 19.92 kB / 1.137 GB, free: 9.938 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.9725, allocations: 111.8 kB / 1.137 GB, free: 9.828 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.729e-05/0.9726, allocations: 35.95 kB / 1.137 GB, free: 9.793 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.304e-05/0.9727, allocations: 23.98 kB / 1.137 GB, free: 9.77 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001363/0.9741, allocations: 0.7428 MB / 1.138 GB, free: 9.02 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9741, allocations: 4 kB / 1.138 GB, free: 9.016 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001839/0.9759, allocations: 0.5535 MB / 1.139 GB, free: 8.461 MB / 0.8887 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.0009517/0.9769, allocations: 379.5 kB / 1.139 GB, free: 8.09 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003386/0.9803, allocations: 1.167 MB / 1.14 GB, free: 6.926 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.9803, allocations: 4.125 kB / 1.14 GB, free: 6.922 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009729/0.9813, allocations: 368.3 kB / 1.141 GB, free: 6.562 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0032/0.9845, allocations: 0.5071 MB / 1.141 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006385/0.9909, allocations: 2.569 MB / 1.144 GB, free: 3.43 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007873/0.9918, allocations: 1.058 MB / 1.145 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/0.9921, allocations: 83.41 kB / 1.145 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of SimCode: time 9.01e-07/0.9921, allocations: 0 / 1.145 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of Templates: time 0.03617/1.028, allocations: 23.66 MB / 1.168 GB, free: 10.74 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches