Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001417/0.001417, allocations: 104.7 kB / 16.64 MB, free: 6.816 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.001567/0.001568, allocations: 194 kB / 17.57 MB, free: 5.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.385/1.385, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7625/0.7625, allocations: 122.9 MB / 414.2 MB, free: 64 kB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001509, allocations: 59.91 kB / 0.4912 GB, free: 7.797 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4295, allocations: 77.91 MB / 0.5673 GB, free: 32.65 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.0571/0.4866, allocations: 60.65 MB / 0.6265 GB, free: 14.24 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01738/0.504, allocations: 11.9 MB / 0.6382 GB, free: 2.305 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002912/0.507, allocations: 55.62 kB / 0.6382 GB, free: 2.25 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002518/0.5096, allocations: 0.5868 MB / 0.6388 GB, free: 1.66 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006432/0.5161, allocations: 1.831 MB / 0.6406 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003442/0.5195, allocations: 1.085 MB / 0.6416 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00466/0.5242, allocations: 3.117 MB / 0.6447 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001979/0.5262, allocations: 1.102 MB / 0.6458 GB, free: 10.49 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003805/0.53, allocations: 1.331 MB / 0.6471 GB, free: 9.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/0.532, allocations: 0.9256 MB / 0.648 GB, free: 8.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004185/0.5324, allocations: 116 kB / 0.6481 GB, free: 8.117 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003414/0.5359, allocations: 1.45 MB / 0.6495 GB, free: 6.664 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005763/0.5365, allocations: 294.8 kB / 0.6498 GB, free: 6.375 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001562/0.538, allocations: 0.6958 MB / 0.6505 GB, free: 5.676 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003225/0.5413, allocations: 1.746 MB / 0.6522 GB, free: 3.926 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.5413, allocations: 0 / 0.6522 GB, free: 3.926 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.5413, allocations: 4 kB / 0.6522 GB, free: 3.922 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.294e-05/0.5414, allocations: 0 / 0.6522 GB, free: 3.922 MB / 494.1 MB 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.004173/0.5455, allocations: 1.711 MB / 0.6538 GB, free: 2.148 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.5456, allocations: 8.625 kB / 0.6538 GB, free: 2.141 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.5479, allocations: 410.8 kB / 0.6542 GB, free: 1.738 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002525/0.5504, allocations: 1.124 MB / 0.6553 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003608/0.5508, allocations: 125.9 kB / 0.6554 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.551, allocations: 80 kB / 0.6555 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002271/0.5533, allocations: 0.9778 MB / 0.6565 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.5533, allocations: 3.938 kB / 0.6565 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.573e-05/0.5534, allocations: 36 kB / 0.6565 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.5534, allocations: 20 kB / 0.6565 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.5557, allocations: 0.8625 MB / 0.6574 GB, free: 14.41 MB / 0.4981 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.007489/0.5632, allocations: 4.853 MB / 0.6621 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003294/0.5666, allocations: 0.7881 MB / 0.6629 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000708/0.5673, allocations: 300.7 kB / 0.6632 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007007/0.568, allocations: 0.9102 MB / 0.6641 GB, free: 7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.5681, allocations: 50.48 kB / 0.6641 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=43): time 3.647e-06/0.5681, allocations: 0 / 0.6641 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.008168/0.5763, allocations: 1.903 MB / 0.666 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.5763, allocations: 59.41 kB / 0.666 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.5783, allocations: 1.044 MB / 0.667 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.933e-05/0.5784, allocations: 37.7 kB / 0.6671 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004838/0.5789, allocations: 0.5235 MB / 0.6676 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.5791, allocations: 157.8 kB / 0.6677 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.5794, allocations: 130.1 kB / 0.6679 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.397e-05/0.5795, allocations: 322 kB / 0.6682 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008189/0.5803, allocations: 306.9 kB / 0.6685 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.5813, allocations: 0.5025 MB / 0.669 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.5829, allocations: 0.6889 MB / 0.6696 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.5829, allocations: 4 kB / 0.6696 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002722/0.5857, allocations: 0.9928 MB / 0.6706 GB, free: 56 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.5857, allocations: 8 kB / 0.6706 GB, free: 48 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.5857, allocations: 4 kB / 0.6706 GB, free: 44 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001337/0.5871, allocations: 320.9 kB / 0.6709 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005331/0.5876, allocations: 119.8 kB / 0.671 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.5891, allocations: 0.9176 MB / 0.6719 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.5906, allocations: 167.3 kB / 0.6721 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-05/0.5907, allocations: 31.98 kB / 0.6721 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001263/0.592, allocations: 0.5049 MB / 0.6726 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009958/0.593, allocations: 0.5022 MB / 0.6731 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001527/0.5945, allocations: 0.6716 MB / 0.6738 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.597e-06/0.5945, allocations: 0 / 0.6738 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002671/0.5972, allocations: 0.981 MB / 0.6747 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.5972, allocations: 14.09 kB / 0.6747 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.5972, allocations: 8 kB / 0.6747 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.5984, allocations: 304.5 kB / 0.675 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005096/0.5989, allocations: 115.8 kB / 0.6751 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.6003, allocations: 0.9096 MB / 0.676 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.6018, allocations: 155.6 kB / 0.6762 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/0.6019, allocations: 35.86 kB / 0.6762 GB, free: 10.09 MB / 0.5137 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.000274/0.6021, allocations: 224.9 kB / 0.6764 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000324/0.6025, allocations: 110.7 kB / 0.6765 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/0.6062, allocations: 1.097 MB / 0.6776 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.935e-05/0.6063, allocations: 7.938 kB / 0.6776 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.976e-06/0.6063, allocations: 3.938 kB / 0.6776 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.6063, allocations: 0 / 0.6776 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005524/0.6118, allocations: 2.171 MB / 0.6797 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.6119, allocations: 4 kB / 0.6797 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002805/0.6122, allocations: 59.94 kB / 0.6798 GB, free: 6.316 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.6132, allocations: 308.8 kB / 0.6801 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.6133, allocations: 12 kB / 0.6801 GB, free: 6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.6147, allocations: 0.9469 MB / 0.681 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.6148, allocations: 7.969 kB / 0.681 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00356/0.6183, allocations: 1.163 MB / 0.6822 GB, free: 3.812 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006604/0.619, allocations: 263.5 kB / 0.6824 GB, free: 3.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002784/0.6193, allocations: 12 kB / 0.6824 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.6203, allocations: 99.8 kB / 0.6825 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.397e-05/0.6204, allocations: 35.89 kB / 0.6826 GB, free: 3.391 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.828e-05/0.6205, allocations: 27.98 kB / 0.6826 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001439/0.622, allocations: 0.735 MB / 0.6833 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.81e-07/0.622, allocations: 0 / 0.6833 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001998/0.624, allocations: 0.5614 MB / 0.6839 GB, free: 2.059 MB / 0.5137 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.001036/0.625, allocations: 378.1 kB / 0.6842 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003361/0.6284, allocations: 1.129 MB / 0.6853 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.6284, allocations: 0 / 0.6853 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009393/0.6294, allocations: 351.1 kB / 0.6857 GB, free: 224 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002934/0.6323, allocations: 0.5011 MB / 0.6861 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006151/0.6385, allocations: 2.447 MB / 0.6885 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000804/0.6394, allocations: 1.061 MB / 0.6896 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.6397, allocations: 87.41 kB / 0.6897 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of SimCode: time 9.11e-07/0.6398, allocations: 0 / 0.6897 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of Templates: time 0.0368/0.6766, allocations: 23.77 MB / 0.7129 GB, free: 4.453 MB / 0.545 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)