Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001164/0.001164, allocations: 108 kB / 15.61 MB, free: 152 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.001283/0.001283, allocations: 197.4 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.6/1.6, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.567/1.567, allocations: 251.7 MB / 0.5092 GB, free: 3.125 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001407, allocations: 63.91 kB / 0.6223 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4751/0.4765, allocations: 104.7 MB / 0.7245 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05812/0.5347, allocations: 61.21 MB / 0.7843 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01627/0.551, allocations: 11.87 MB / 0.7959 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002019/0.5531, allocations: 59.62 kB / 0.7959 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.5549, allocations: 0.6752 MB / 0.7966 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005137/0.5601, allocations: 1.95 MB / 0.7985 GB, free: 0.8867 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003014/0.5632, allocations: 1.217 MB / 0.7997 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004003/0.5672, allocations: 3.071 MB / 0.8027 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001727/0.5689, allocations: 1.1 MB / 0.8038 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003032/0.572, allocations: 1.315 MB / 0.805 GB, free: 10.15 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001638/0.5736, allocations: 0.9062 MB / 0.8059 GB, free: 9.238 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002399/0.5739, allocations: 120 kB / 0.806 GB, free: 9.121 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002669/0.5765, allocations: 1.412 MB / 0.8074 GB, free: 7.707 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.5768, allocations: 290.9 kB / 0.8077 GB, free: 7.422 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0007789/0.5776, allocations: 0.6997 MB / 0.8084 GB, free: 6.719 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.00287/0.5805, allocations: 2.267 MB / 0.8106 GB, free: 4.445 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.5805, allocations: 0 / 0.8106 GB, free: 4.445 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5805, allocations: 0 / 0.8106 GB, free: 4.445 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.916e-05/0.5805, allocations: 0 / 0.8106 GB, free: 4.445 MB / 0.6231 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.002903/0.5834, allocations: 1.734 MB / 0.8123 GB, free: 2.648 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.5835, allocations: 8.031 kB / 0.8123 GB, free: 2.641 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002173/0.5857, allocations: 406.8 kB / 0.8127 GB, free: 2.242 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/0.5876, allocations: 1.109 MB / 0.8138 GB, free: 1.078 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000378/0.588, allocations: 117.9 kB / 0.8139 GB, free: 0.9609 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.5881, allocations: 80 kB / 0.814 GB, free: 0.8828 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.5901, allocations: 1.004 MB / 0.8149 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.5902, allocations: 4 kB / 0.8149 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-05/0.5903, allocations: 35.98 kB / 0.815 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.5903, allocations: 19.94 kB / 0.815 GB, free: 15.77 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002373/0.5927, allocations: 0.882 MB / 0.8159 GB, free: 14.88 MB / 0.6387 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.006696/0.5994, allocations: 5.02 MB / 0.8208 GB, free: 9.531 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003465/0.6028, allocations: 0.8462 MB / 0.8216 GB, free: 8.676 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000779/0.6036, allocations: 322.5 kB / 0.8219 GB, free: 8.359 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006795/0.6043, allocations: 0.9029 MB / 0.8228 GB, free: 7.254 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.6044, allocations: 35 kB / 0.8228 GB, free: 7.211 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=47): time 2.354e-06/0.6044, allocations: 0 / 0.8228 GB, free: 7.211 MB / 0.6387 GB Notification: Performance of matching and sorting (n=47): time 0.008011/0.6124, allocations: 1.811 MB / 0.8246 GB, free: 5.367 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.6125, allocations: 59.78 kB / 0.8246 GB, free: 5.297 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001667/0.6141, allocations: 1.076 MB / 0.8257 GB, free: 4.207 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 8.821e-05/0.6142, allocations: 37.7 kB / 0.8257 GB, free: 4.164 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004163/0.6147, allocations: 0.5273 MB / 0.8262 GB, free: 3.633 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.6148, allocations: 161.7 kB / 0.8264 GB, free: 3.473 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.6151, allocations: 146.1 kB / 0.8265 GB, free: 3.324 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.6152, allocations: 330 kB / 0.8268 GB, free: 2.996 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009529/0.6161, allocations: 327.2 kB / 0.8272 GB, free: 2.672 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.6173, allocations: 0.5481 MB / 0.8277 GB, free: 2.027 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.6191, allocations: 0.7287 MB / 0.8284 GB, free: 1.234 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.6191, allocations: 4 kB / 0.8284 GB, free: 1.23 MB / 0.6387 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.003749/0.6228, allocations: 1.202 MB / 0.8296 GB, free: 20 kB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.6229, allocations: 14.41 kB / 0.8296 GB, free: 8 kB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.6229, allocations: 7.938 kB / 0.8296 GB, free: 0 / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.6241, allocations: 327.9 kB / 0.8299 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005484/0.6246, allocations: 131.8 kB / 0.83 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001412/0.6261, allocations: 0.9152 MB / 0.8309 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.6273, allocations: 159.2 kB / 0.8311 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-05/0.6274, allocations: 31.98 kB / 0.8311 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001386/0.6288, allocations: 0.5246 MB / 0.8316 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001086/0.6299, allocations: 0.5403 MB / 0.8322 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001645/0.6315, allocations: 0.7248 MB / 0.8329 GB, free: 12.47 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.7e-06/0.6315, allocations: 7.984 kB / 0.8329 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=75) (initialization_lambda0): time 0.003586/0.6351, allocations: 1.194 MB / 0.834 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.6352, allocations: 4 kB / 0.834 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.6352, allocations: 8 kB / 0.834 GB, free: 11.24 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.6363, allocations: 316.5 kB / 0.8344 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005475/0.6368, allocations: 139.7 kB / 0.8345 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.6382, allocations: 0.9074 MB / 0.8354 GB, free: 9.859 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.6395, allocations: 143.5 kB / 0.8355 GB, free: 9.719 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.535e-05/0.6396, allocations: 35.92 kB / 0.8355 GB, free: 9.684 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (61): * Single equations (assignments): 60 * 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.0002813/0.6398, allocations: 220.7 kB / 0.8358 GB, free: 9.461 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/0.64, allocations: 114.5 kB / 0.8359 GB, free: 9.348 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/0.644, allocations: 1.155 MB / 0.837 GB, free: 8.176 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.644, allocations: 4 kB / 0.837 GB, free: 8.172 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.644, allocations: 4 kB / 0.837 GB, free: 8.168 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.644, allocations: 3.984 kB / 0.837 GB, free: 8.164 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005293/0.6493, allocations: 2.209 MB / 0.8392 GB, free: 5.875 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.6494, allocations: 4 kB / 0.8392 GB, free: 5.871 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.6497, allocations: 67.89 kB / 0.8392 GB, free: 5.805 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.6507, allocations: 300.7 kB / 0.8395 GB, free: 5.508 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-05/0.6508, allocations: 19.92 kB / 0.8395 GB, free: 5.488 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.6524, allocations: 0.9502 MB / 0.8405 GB, free: 4.512 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6524, allocations: 0 / 0.8405 GB, free: 4.512 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.6571, allocations: 1.344 MB / 0.8418 GB, free: 3.117 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004972/0.6576, allocations: 267.5 kB / 0.842 GB, free: 2.836 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001544/0.6578, allocations: 12 kB / 0.842 GB, free: 2.824 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008417/0.6586, allocations: 75.91 kB / 0.8421 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.312e-05/0.6587, allocations: 43.78 kB / 0.8422 GB, free: 2.707 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/0.6588, allocations: 23.98 kB / 0.8422 GB, free: 2.684 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001154/0.66, allocations: 0.7551 MB / 0.8429 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.8e-07/0.66, allocations: 0 / 0.8429 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001527/0.6615, allocations: 0.5654 MB / 0.8435 GB, free: 1.355 MB / 0.6544 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 (37): * Single equations (assignments): 32 * 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.0007137/0.6622, allocations: 382.5 kB / 0.8438 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003413/0.6656, allocations: 1.202 MB / 0.845 GB, free: 15.78 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.6657, allocations: 7.922 kB / 0.845 GB, free: 15.77 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.000931/0.6666, allocations: 363.1 kB / 0.8454 GB, free: 15.42 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.6689, allocations: 0.5441 MB / 0.8459 GB, free: 14.89 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005234/0.6741, allocations: 2.054 MB / 0.8479 GB, free: 12.78 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006275/0.6748, allocations: 1.062 MB / 0.8489 GB, free: 11.69 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001075/0.6759, allocations: 241 kB / 0.8492 GB, free: 11.45 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002043/0.6761, allocations: 75.42 kB / 0.8492 GB, free: 11.38 MB / 0.67 GB Notification: Performance of SimCode: time 2.245e-06/0.6761, allocations: 4 kB / 0.8492 GB, free: 11.37 MB / 0.67 GB Notification: Performance of Templates: time 0.04284/0.719, allocations: 25.56 MB / 0.8742 GB, free: 2.137 MB / 0.6856 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)