Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001345/0.001345, allocations: 193.3 kB / 16.25 MB, free: 6.629 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.334/1.334, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 472.6 MB / 0.7448 GB, free: 4.836 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 60.88 kB / 0.9115 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3383, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.0578/0.3961, allocations: 60.73 MB / 1.127 GB, free: 13.81 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01659/0.4127, allocations: 11.93 MB / 1.139 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/0.415, allocations: 55.62 kB / 1.139 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002144/0.4172, allocations: 0.5867 MB / 1.139 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005463/0.4226, allocations: 1.828 MB / 1.141 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003179/0.4258, allocations: 1.089 MB / 1.142 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004466/0.4303, allocations: 3.109 MB / 1.145 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.4323, allocations: 1.128 MB / 1.146 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003462/0.4358, allocations: 1.329 MB / 1.148 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001872/0.4377, allocations: 0.9412 MB / 1.148 GB, free: 7.73 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004063/0.4381, allocations: 124 kB / 1.149 GB, free: 7.609 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003041/0.4412, allocations: 1.446 MB / 1.15 GB, free: 6.16 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004673/0.4417, allocations: 302.8 kB / 1.15 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001248/0.4429, allocations: 0.7037 MB / 1.151 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004017/0.4469, allocations: 2.294 MB / 1.153 GB, free: 2.855 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.447, allocations: 0 / 1.153 GB, free: 2.855 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.933e-06/0.447, allocations: 0 / 1.153 GB, free: 2.855 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.716e-05/0.447, allocations: 0 / 1.153 GB, free: 2.855 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.004165/0.4512, allocations: 1.734 MB / 1.155 GB, free: 1.062 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.4513, allocations: 8.031 kB / 1.155 GB, free: 1.055 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002762/0.454, allocations: 462.7 kB / 1.155 GB, free: 0.6016 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002547/0.4566, allocations: 1.128 MB / 1.156 GB, free: 15.41 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003814/0.457, allocations: 117.9 kB / 1.157 GB, free: 15.3 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/0.4572, allocations: 80 kB / 1.157 GB, free: 15.22 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.4596, allocations: 1.006 MB / 1.158 GB, free: 14.18 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.4597, allocations: 4 kB / 1.158 GB, free: 14.18 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.28e-05/0.4598, allocations: 28 kB / 1.158 GB, free: 14.15 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.4598, allocations: 20 kB / 1.158 GB, free: 14.13 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002774/0.4626, allocations: 0.9524 MB / 1.159 GB, free: 13.18 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.006568/0.4691, allocations: 4.696 MB / 1.163 GB, free: 8.137 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004114/0.4733, allocations: 0.9992 MB / 1.164 GB, free: 7.133 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.4744, allocations: 411.2 kB / 1.165 GB, free: 6.73 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009561/0.4753, allocations: 1.021 MB / 1.166 GB, free: 5.484 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.4754, allocations: 38.94 kB / 1.166 GB, free: 5.438 MB / 0.92 GB Notification: Performance of pre-optimization done (n=53): time 3.948e-06/0.4754, allocations: 4 kB / 1.166 GB, free: 5.434 MB / 0.92 GB Notification: Performance of matching and sorting (n=53): time 0.009531/0.4849, allocations: 2.228 MB / 1.168 GB, free: 3.176 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.485, allocations: 55.84 kB / 1.168 GB, free: 3.109 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.4864, allocations: 0.9392 MB / 1.169 GB, free: 2.152 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.49e-05/0.4865, allocations: 37.7 kB / 1.169 GB, free: 2.109 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003908/0.4869, allocations: 0.5002 MB / 1.169 GB, free: 1.605 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.487, allocations: 189.2 kB / 1.169 GB, free: 1.418 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.4873, allocations: 130.1 kB / 1.17 GB, free: 1.285 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4874, allocations: 330 kB / 1.17 GB, free: 0.957 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.4884, allocations: 358.8 kB / 1.17 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.4896, allocations: 0.5156 MB / 1.171 GB, free: 28 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.4917, allocations: 0.7735 MB / 1.172 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.4917, allocations: 0 / 1.172 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00292/0.4946, allocations: 1.068 MB / 1.173 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.4947, allocations: 8 kB / 1.173 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.4947, allocations: 0 / 1.173 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.496, allocations: 320.8 kB / 1.173 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006592/0.4966, allocations: 131.8 kB / 1.173 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.4981, allocations: 0.9091 MB / 1.174 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.4992, allocations: 159.3 kB / 1.174 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.019e-05/0.4993, allocations: 31.92 kB / 1.174 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001306/0.5006, allocations: 0.5596 MB / 1.175 GB, free: 12 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001153/0.5018, allocations: 0.5155 MB / 1.175 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00197/0.5038, allocations: 0.758 MB / 1.176 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.515e-06/0.5038, allocations: 0 / 1.176 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.002851/0.5067, allocations: 1.06 MB / 1.177 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.5067, allocations: 8 kB / 1.177 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.5067, allocations: 7.984 kB / 1.177 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.5078, allocations: 310.8 kB / 1.177 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006452/0.5084, allocations: 135.7 kB / 1.177 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.5098, allocations: 0.8998 MB / 1.178 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.511, allocations: 155.4 kB / 1.178 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/0.5111, allocations: 27.98 kB / 1.178 GB, free: 8 MB / 0.9356 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.0002304/0.5113, allocations: 212.7 kB / 1.179 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.5116, allocations: 110.7 kB / 1.179 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.516, allocations: 1.318 MB / 1.18 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.601e-05/0.516, allocations: 11.98 kB / 1.18 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.516, allocations: 0 / 1.18 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.5161, allocations: 0 / 1.18 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005952/0.522, allocations: 2.428 MB / 1.182 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.522, allocations: 0 / 1.182 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005705/0.5226, allocations: 108 kB / 1.182 GB, free: 3.723 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.5236, allocations: 301.8 kB / 1.183 GB, free: 3.426 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.607e-05/0.5237, allocations: 15.98 kB / 1.183 GB, free: 3.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.5252, allocations: 0.9425 MB / 1.184 GB, free: 2.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.5252, allocations: 3.938 kB / 1.184 GB, free: 2.438 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004183/0.5294, allocations: 1.343 MB / 1.185 GB, free: 1.055 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005476/0.5299, allocations: 279.5 kB / 1.185 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.5302, allocations: 19.92 kB / 1.185 GB, free: 0.7422 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.5313, allocations: 111.8 kB / 1.185 GB, free: 0.6328 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.5314, allocations: 32.39 kB / 1.185 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-05/0.5315, allocations: 23.98 kB / 1.185 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001167/0.5327, allocations: 0.6596 MB / 1.186 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.81e-07/0.5327, allocations: 0 / 1.186 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001793/0.5345, allocations: 0.5691 MB / 1.187 GB, free: 15.34 MB / 0.9512 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.0009528/0.5355, allocations: 382.5 kB / 1.187 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004066/0.5395, allocations: 1.342 MB / 1.188 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.5396, allocations: 3.938 kB / 1.188 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.5409, allocations: 460.8 kB / 1.189 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.5432, allocations: 0.4922 MB / 1.189 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004095/0.5473, allocations: 2.312 MB / 1.191 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006309/0.548, allocations: 1.07 MB / 1.193 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001071/0.549, allocations: 235 kB / 1.193 GB, free: 9 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.5493, allocations: 79.41 kB / 1.193 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of SimCode: time 7.22e-07/0.5493, allocations: 0 / 1.193 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of Templates: time 0.03907/0.5884, allocations: 24.43 MB / 1.217 GB, free: 0.7773 MB / 0.9669 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)