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.00127/0.00127, allocations: 115.4 kB / 17.08 MB, free: 6.016 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.001236/0.001236, allocations: 199 kB / 18.02 MB, free: 5.094 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.246/1.246, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6975/0.6975, allocations: 115.3 MB / 407.2 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 65.81 kB / 0.5583 GB, free: 32.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1501, allocations: 76.18 MB / 0.6327 GB, free: 4.414 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06244/0.2126, allocations: 61.14 MB / 0.6924 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01697/0.2296, allocations: 11.99 MB / 0.7041 GB, free: 11.03 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.2319, allocations: 59.62 kB / 0.7042 GB, free: 10.97 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002162/0.2341, allocations: 0.6791 MB / 0.7049 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005889/0.24, allocations: 1.963 MB / 0.7068 GB, free: 8.316 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003511/0.2436, allocations: 1.206 MB / 0.708 GB, free: 7.117 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004627/0.2482, allocations: 3.088 MB / 0.711 GB, free: 4.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001971/0.2502, allocations: 1.096 MB / 0.712 GB, free: 2.887 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003428/0.2536, allocations: 1.359 MB / 0.7134 GB, free: 1.527 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.2555, allocations: 0.9002 MB / 0.7142 GB, free: 0.625 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004506/0.2559, allocations: 112 kB / 0.7144 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003363/0.2593, allocations: 1.443 MB / 0.7158 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005141/0.2598, allocations: 282.9 kB / 0.716 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001522/0.2614, allocations: 0.6958 MB / 0.7167 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00469/0.2661, allocations: 2.286 MB / 0.7189 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2661, allocations: 7.938 kB / 0.719 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.993e-06/0.2661, allocations: 0 / 0.719 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.163e-05/0.2662, allocations: 0 / 0.719 GB, free: 11.79 MB / 0.5606 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.004651/0.2709, allocations: 1.722 MB / 0.7206 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2709, allocations: 16.03 kB / 0.7206 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002224/0.2731, allocations: 406.8 kB / 0.721 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002713/0.2759, allocations: 1.167 MB / 0.7222 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.557e-05/0.276, allocations: 62 kB / 0.7222 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/0.2762, allocations: 80 kB / 0.7223 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.2785, allocations: 0.9976 MB / 0.7233 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.2785, allocations: 7.938 kB / 0.7233 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.35e-05/0.2786, allocations: 35.98 kB / 0.7233 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.2786, allocations: 20 kB / 0.7233 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.2809, allocations: 0.8586 MB / 0.7242 GB, free: 6.258 MB / 0.5606 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.006996/0.2879, allocations: 5.219 MB / 0.7293 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003155/0.2911, allocations: 0.7879 MB / 0.7301 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006782/0.2918, allocations: 296.7 kB / 0.7303 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006753/0.2925, allocations: 0.9025 MB / 0.7312 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.2925, allocations: 38.56 kB / 0.7313 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 3.076e-06/0.2926, allocations: 3.938 kB / 0.7313 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.007726/0.3003, allocations: 1.852 MB / 0.7331 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.3004, allocations: 55.41 kB / 0.7331 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/0.3023, allocations: 1.068 MB / 0.7342 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.521e-05/0.3024, allocations: 41.7 kB / 0.7342 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005076/0.3029, allocations: 0.535 MB / 0.7347 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.3031, allocations: 153.8 kB / 0.7349 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.3034, allocations: 134.2 kB / 0.735 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3035, allocations: 326 kB / 0.7353 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008871/0.3044, allocations: 311.2 kB / 0.7356 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.3055, allocations: 0.5307 MB / 0.7361 GB, free: 9.246 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.3072, allocations: 0.7136 MB / 0.7368 GB, free: 8.461 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.3073, allocations: 4 kB / 0.7368 GB, free: 8.457 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002783/0.31, allocations: 1.016 MB / 0.7378 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3101, allocations: 8 kB / 0.7378 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.3101, allocations: 4 kB / 0.7378 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.3114, allocations: 308.6 kB / 0.7381 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005416/0.3119, allocations: 127.8 kB / 0.7382 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.3133, allocations: 0.9034 MB / 0.7391 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.3146, allocations: 155.2 kB / 0.7393 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.714e-05/0.3147, allocations: 35.92 kB / 0.7393 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001174/0.3158, allocations: 0.5085 MB / 0.7398 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001032/0.3169, allocations: 0.5385 MB / 0.7403 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001591/0.3185, allocations: 0.7062 MB / 0.741 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5e-06/0.3185, allocations: 4 kB / 0.741 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002717/0.3212, allocations: 0.9964 MB / 0.742 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.3213, allocations: 16 kB / 0.742 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3213, allocations: 4 kB / 0.742 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.3224, allocations: 294.8 kB / 0.7423 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005042/0.3229, allocations: 135.8 kB / 0.7424 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.3242, allocations: 0.8918 MB / 0.7433 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.3255, allocations: 135.5 kB / 0.7434 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.245e-05/0.3256, allocations: 27.98 kB / 0.7435 GB, free: 1.414 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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.0002605/0.3258, allocations: 229 kB / 0.7437 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.3261, allocations: 114.8 kB / 0.7438 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3371/0.6632, allocations: 1.076 MB / 0.7448 GB, free: 109 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.372e-05/0.6633, allocations: 9.438 kB / 0.7448 GB, free: 109 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.6633, allocations: 5.844 kB / 0.7448 GB, free: 109 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.6633, allocations: 1.922 kB / 0.7448 GB, free: 109 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005516/0.6688, allocations: 2.144 MB / 0.7469 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.6689, allocations: 3.719 kB / 0.7469 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002675/0.6691, allocations: 60.19 kB / 0.747 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009324/0.6701, allocations: 285.9 kB / 0.7473 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-05/0.6701, allocations: 21.44 kB / 0.7473 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.6714, allocations: 0.9284 MB / 0.7482 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.6714, allocations: 9.781 kB / 0.7482 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/0.6748, allocations: 1.138 MB / 0.7493 GB, free: 107.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004319/0.6753, allocations: 264 kB / 0.7496 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.6754, allocations: 15.66 kB / 0.7496 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007586/0.6762, allocations: 71.28 kB / 0.7497 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.439e-05/0.6763, allocations: 33.75 kB / 0.7497 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.533e-05/0.6763, allocations: 28.8 kB / 0.7497 GB, free: 107.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001235/0.6776, allocations: 0.7547 MB / 0.7505 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6776, allocations: 0.7188 kB / 0.7505 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001642/0.6792, allocations: 0.569 MB / 0.751 GB, free: 107.2 MB / 0.5762 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.0008286/0.6801, allocations: 384.9 kB / 0.7514 GB, free: 107.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003098/0.6832, allocations: 1.127 MB / 0.7525 GB, free: 106.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.6832, allocations: 3.938 kB / 0.7525 GB, free: 106.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008267/0.684, allocations: 338.1 kB / 0.7528 GB, free: 106.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/0.6862, allocations: 0.5102 MB / 0.7533 GB, free: 106.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004848/0.691, allocations: 2.034 MB / 0.7553 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008018/0.6918, allocations: 1.066 MB / 0.7563 GB, free: 104.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003291/0.6922, allocations: 83.31 kB / 0.7564 GB, free: 104.9 MB / 0.5762 GB Notification: Performance of SimCode: time 6.21e-07/0.6922, allocations: 3.938 kB / 0.7564 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.02958/0.7218, allocations: 24.28 MB / 0.7801 GB, free: 89.67 MB / 0.5762 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)