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.0009817/0.0009817, allocations: 91.53 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.001412/0.001412, allocations: 179.4 kB / 16.92 MB, free: 6.652 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.438/1.438, allocations: 223.3 MB / 241 MB, free: 5.289 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.562/2.562, allocations: 390.9 MB / 0.667 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004212/0.0004211, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8488/0.8493, allocations: 142.4 MB / 0.9557 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06597/0.9153, allocations: 59.76 MB / 1.014 GB, free: 3.414 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02028/0.9356, allocations: 11.93 MB / 1.026 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002858/0.9385, allocations: 55.62 kB / 1.026 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002518/0.9411, allocations: 0.5399 MB / 1.026 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006725/0.9478, allocations: 1.804 MB / 1.028 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003557/0.9514, allocations: 1.08 MB / 1.029 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005651/0.9571, allocations: 3.91 MB / 1.033 GB, free: 56 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00206/0.9592, allocations: 0.9 MB / 1.034 GB, free: 15.12 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003207/0.9624, allocations: 1.12 MB / 1.035 GB, free: 14 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002154/0.9646, allocations: 0.8513 MB / 1.036 GB, free: 13.14 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0004109/0.965, allocations: 40 kB / 1.036 GB, free: 13.11 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003828/0.9689, allocations: 1.329 MB / 1.037 GB, free: 11.77 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004785/0.9694, allocations: 214.9 kB / 1.037 GB, free: 11.56 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.9707, allocations: 0.6234 MB / 1.038 GB, free: 10.93 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002997/0.9738, allocations: 1.687 MB / 1.04 GB, free: 9.238 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.9738, allocations: 3.938 kB / 1.04 GB, free: 9.234 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.273e-06/0.9738, allocations: 0 / 1.04 GB, free: 9.234 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.137e-05/0.9739, allocations: 0 / 1.04 GB, free: 9.234 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.003554/0.9774, allocations: 1.481 MB / 1.041 GB, free: 7.695 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.9775, allocations: 8.031 kB / 1.041 GB, free: 7.688 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002498/0.98, allocations: 470.8 kB / 1.041 GB, free: 7.227 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/0.9828, allocations: 1.132 MB / 1.043 GB, free: 6.035 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004203/0.9833, allocations: 133.9 kB / 1.043 GB, free: 5.906 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002068/0.9835, allocations: 79.94 kB / 1.043 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.986, allocations: 1.009 MB / 1.044 GB, free: 4.773 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.9861, allocations: 0 / 1.044 GB, free: 4.773 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.693e-05/0.9862, allocations: 32 kB / 1.044 GB, free: 4.742 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.9862, allocations: 20 kB / 1.044 GB, free: 4.723 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002618/0.9888, allocations: 0.9211 MB / 1.045 GB, free: 3.801 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.007812/0.9967, allocations: 4.879 MB / 1.049 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003652/1, allocations: 0.9106 MB / 1.05 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008065/1.001, allocations: 316.6 kB / 1.051 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007177/1.002, allocations: 0.9103 MB / 1.052 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/1.002, allocations: 38.56 kB / 1.052 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=43): time 2.796e-06/1.002, allocations: 0 / 1.052 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of matching and sorting (n=43): time 0.009323/1.011, allocations: 2.157 MB / 1.054 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/1.011, allocations: 59.36 kB / 1.054 GB, free: 9.914 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/1.013, allocations: 1.063 MB / 1.055 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.16e-05/1.013, allocations: 37.7 kB / 1.055 GB, free: 8.793 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004744/1.014, allocations: 0.5195 MB / 1.055 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/1.014, allocations: 149.8 kB / 1.055 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.503e-05/1.014, allocations: 49.69 kB / 1.055 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001157/1.014, allocations: 322 kB / 1.056 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009543/1.015, allocations: 320.9 kB / 1.056 GB, free: 7.434 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/1.016, allocations: 0.5454 MB / 1.057 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/1.018, allocations: 0.7318 MB / 1.057 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/1.018, allocations: 4 kB / 1.057 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002963/1.021, allocations: 1.052 MB / 1.058 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001694/1.021, allocations: 221.2 kB / 1.059 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/1.021, allocations: 7.938 kB / 1.059 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/1.023, allocations: 329.9 kB / 1.059 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005538/1.023, allocations: 131.8 kB / 1.059 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/1.025, allocations: 0.9348 MB / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/1.026, allocations: 195.2 kB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.431e-05/1.027, allocations: 35.97 kB / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/1.027, allocations: 4 kB / 1.06 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002582/1.029, allocations: 0.914 MB / 1.061 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/1.029, allocations: 4 kB / 1.061 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/1.03, allocations: 330.3 kB / 1.061 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005252/1.031, allocations: 123.9 kB / 1.061 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/1.032, allocations: 0.9444 MB / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/1.034, allocations: 155.5 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-05/1.034, allocations: 31.98 kB / 1.063 GB, free: 0.4922 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 (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.0006302/1.034, allocations: 356.8 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002836/1.035, allocations: 114.6 kB / 1.063 GB, free: 20 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00412/1.039, allocations: 1.195 MB / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/1.039, allocations: 8 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/1.039, allocations: 11.92 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/1.039, allocations: 4 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005807/1.045, allocations: 2.261 MB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/1.045, allocations: 4 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/1.045, allocations: 72.17 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/1.046, allocations: 334.1 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.567e-05/1.046, allocations: 11.98 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/1.048, allocations: 0.966 MB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/1.048, allocations: 4.031 kB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004124/1.052, allocations: 1.257 MB / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007254/1.053, allocations: 283.4 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002678/1.053, allocations: 15.98 kB / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/1.054, allocations: 111.9 kB / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.703e-05/1.055, allocations: 39.89 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/1.055, allocations: 19.98 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001283/1.056, allocations: 0.7389 MB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/1.056, allocations: 4 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001807/1.058, allocations: 0.5652 MB / 1.071 GB, free: 7.93 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 (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.0009676/1.059, allocations: 379.2 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003488/1.062, allocations: 1.168 MB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.062, allocations: 4 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0009834/1.063, allocations: 366.5 kB / 1.073 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003022/1.066, allocations: 0.506 MB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006355/1.073, allocations: 2.566 MB / 1.076 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00074/1.073, allocations: 1.058 MB / 1.077 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003041/1.074, allocations: 83.41 kB / 1.077 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of SimCode: time 6.91e-07/1.074, allocations: 3.938 kB / 1.077 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of Templates: time 0.04023/1.114, allocations: 23.66 MB / 1.1 GB, free: 10.21 MB / 0.8575 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/jenkins1/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