Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008677/0.0008675, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.005353/0.005353, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.251/1.251, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.445/2.445, allocations: 462.7 MB / 0.7364 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002686/0.0002686, allocations: 15.53 kB / 0.9029 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2184, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.04708/0.2656, allocations: 59.78 MB / 1.117 GB, free: 8.887 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01273/0.2783, allocations: 11.93 MB / 1.129 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.2796, allocations: 51.69 kB / 1.129 GB, free: 12.88 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.2808, allocations: 0.5477 MB / 1.129 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003714/0.2846, allocations: 1.812 MB / 1.131 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002135/0.2867, allocations: 1.069 MB / 1.132 GB, free: 9.441 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003567/0.2903, allocations: 3.914 MB / 1.136 GB, free: 5.52 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.2914, allocations: 0.9149 MB / 1.137 GB, free: 4.574 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.293, allocations: 1.116 MB / 1.138 GB, free: 3.453 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008693/0.2939, allocations: 0.8708 MB / 1.139 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 8.668e-05/0.294, allocations: 44 kB / 1.139 GB, free: 2.535 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001848/0.2959, allocations: 1.325 MB / 1.14 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.296, allocations: 218.8 kB / 1.14 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004703/0.2965, allocations: 0.635 MB / 1.141 GB, free: 356 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001884/0.2984, allocations: 2.204 MB / 1.143 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2984, allocations: 0 / 1.143 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2984, allocations: 0 / 1.143 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.2984, allocations: 0 / 1.143 GB, free: 14.14 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.002204/0.3007, allocations: 1.493 MB / 1.145 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3007, allocations: 19.97 kB / 1.145 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.3008, allocations: 122.9 kB / 1.145 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002269/0.3031, allocations: 0.5066 MB / 1.145 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.3047, allocations: 1.142 MB / 1.146 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000328/0.3051, allocations: 133.9 kB / 1.147 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.3052, allocations: 87.98 kB / 1.147 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.307, allocations: 1.037 MB / 1.148 GB, free: 9.445 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.3071, allocations: 3.938 kB / 1.148 GB, free: 9.441 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.3072, allocations: 32 kB / 1.148 GB, free: 9.41 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.3072, allocations: 20 kB / 1.148 GB, free: 9.391 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002371/0.3095, allocations: 1.007 MB / 1.149 GB, free: 8.383 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.00491/0.3145, allocations: 4.715 MB / 1.153 GB, free: 3.316 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003803/0.3183, allocations: 1.131 MB / 1.154 GB, free: 2.18 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009839/0.3193, allocations: 449.1 kB / 1.155 GB, free: 1.738 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007844/0.3201, allocations: 1.033 MB / 1.156 GB, free: 496 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.3201, allocations: 42.94 kB / 1.156 GB, free: 444 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=53): time 1.673e-06/0.3201, allocations: 0 / 1.156 GB, free: 444 kB / 0.9044 GB Notification: Performance of matching and sorting (n=53): time 0.008982/0.3291, allocations: 2.494 MB / 1.158 GB, free: 13.91 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.3291, allocations: 63.78 kB / 1.158 GB, free: 13.84 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009813/0.3301, allocations: 0.9353 MB / 1.159 GB, free: 12.89 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.437e-05/0.3302, allocations: 37.7 kB / 1.159 GB, free: 12.84 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003302/0.3305, allocations: 0.504 MB / 1.16 GB, free: 12.34 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.3307, allocations: 193.3 kB / 1.16 GB, free: 12.14 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.647e-05/0.3307, allocations: 49.69 kB / 1.16 GB, free: 12.09 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.844e-05/0.3308, allocations: 322 kB / 1.16 GB, free: 11.77 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009735/0.3318, allocations: 388.9 kB / 1.161 GB, free: 11.39 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.3329, allocations: 0.5351 MB / 1.161 GB, free: 10.79 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.3348, allocations: 0.8321 MB / 1.162 GB, free: 9.93 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3348, allocations: 0 / 1.162 GB, free: 9.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002621/0.3375, allocations: 1.142 MB / 1.163 GB, free: 8.773 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.469e-05/0.3375, allocations: 164.4 kB / 1.163 GB, free: 8.578 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3376, allocations: 4 kB / 1.163 GB, free: 8.574 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.3387, allocations: 320.6 kB / 1.164 GB, free: 8.258 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005726/0.3393, allocations: 147.8 kB / 1.164 GB, free: 8.113 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/0.3405, allocations: 0.9425 MB / 1.165 GB, free: 7.145 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009196/0.3415, allocations: 171.3 kB / 1.165 GB, free: 6.977 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.834e-05/0.3415, allocations: 31.97 kB / 1.165 GB, free: 6.945 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 6.202e-06/0.3416, allocations: 5.719 kB / 1.165 GB, free: 6.941 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002475/0.344, allocations: 1.001 MB / 1.166 GB, free: 5.934 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3441, allocations: 4 kB / 1.166 GB, free: 5.93 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009622/0.345, allocations: 324 kB / 1.166 GB, free: 5.613 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/0.3456, allocations: 151.7 kB / 1.166 GB, free: 5.465 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.3468, allocations: 0.9308 MB / 1.167 GB, free: 4.508 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008879/0.3477, allocations: 175.3 kB / 1.167 GB, free: 4.336 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.261e-05/0.3478, allocations: 27.98 kB / 1.167 GB, free: 4.309 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (55): * Single equations (assignments): 54 * 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.0003424/0.3482, allocations: 353 kB / 1.168 GB, free: 3.953 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.3483, allocations: 110.6 kB / 1.168 GB, free: 3.844 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004262/0.3526, allocations: 1.44 MB / 1.169 GB, free: 2.391 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.3526, allocations: 11.98 kB / 1.169 GB, free: 2.379 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3526, allocations: 0 / 1.169 GB, free: 2.379 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3526, allocations: 0 / 1.169 GB, free: 2.379 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005191/0.3578, allocations: 2.53 MB / 1.172 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/0.3578, allocations: 4 kB / 1.172 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.3583, allocations: 115.9 kB / 1.172 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009078/0.3592, allocations: 328.5 kB / 1.172 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.751e-05/0.3593, allocations: 12 kB / 1.172 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.3606, allocations: 0.973 MB / 1.173 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3606, allocations: 4.031 kB / 1.173 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003957/0.3646, allocations: 1.46 MB / 1.175 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/0.3649, allocations: 287.5 kB / 1.175 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.365, allocations: 12 kB / 1.175 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008695/0.3659, allocations: 131.7 kB / 1.175 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.366, allocations: 36.33 kB / 1.175 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.366, allocations: 31.97 kB / 1.175 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0007217/0.3668, allocations: 0.6557 MB / 1.176 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3668, allocations: 4 kB / 1.176 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001089/0.3679, allocations: 0.5613 MB / 1.176 GB, free: 11.08 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.004691/0.3726, allocations: 2.283 MB / 1.178 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003354/0.3759, allocations: 1.397 MB / 1.18 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3759, allocations: 4 kB / 1.18 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.3771, allocations: 488.8 kB / 1.18 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.3794, allocations: 0.5001 MB / 1.181 GB, free: 6.379 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01612/0.3955, allocations: 9.293 MB / 1.19 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.3961, allocations: 1.07 MB / 1.191 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0008205/0.3969, allocations: 216.3 kB / 1.191 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/0.3974, allocations: 427.2 kB / 1.191 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of SimCode: time 4.11e-07/0.3974, allocations: 0 / 1.191 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.794/4.191, allocations: 31.65 MB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000289/4.192, allocations: 283.9 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.889/7.081, allocations: 6.672 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)