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.00136/0.00136, allocations: 93.27 kB / 16.02 MB, free: 84 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.001195/0.001195, allocations: 184.5 kB / 16.92 MB, free: 6.934 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.403/1.403, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7259/0.7259, allocations: 123 MB / 415.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003763, allocations: 12.97 kB / 0.4933 GB, free: 13.99 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4205/0.4209, allocations: 79.27 MB / 0.5707 GB, free: 9.902 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06875/0.4897, allocations: 59.69 MB / 0.629 GB, free: 14.57 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01684/0.5065, allocations: 11.93 MB / 0.6407 GB, free: 4.855 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.5086, allocations: 55.62 kB / 0.6407 GB, free: 4.801 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.5106, allocations: 0.5477 MB / 0.6413 GB, free: 4.25 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005757/0.5163, allocations: 1.8 MB / 0.643 GB, free: 2.441 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003273/0.5196, allocations: 1.079 MB / 0.6441 GB, free: 1.375 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00503/0.5247, allocations: 3.9 MB / 0.6479 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.5264, allocations: 0.8942 MB / 0.6487 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002763/0.5292, allocations: 1.124 MB / 0.6498 GB, free: 11.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.531, allocations: 0.8553 MB / 0.6507 GB, free: 10.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003001/0.5313, allocations: 47.94 kB / 0.6507 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003003/0.5343, allocations: 1.325 MB / 0.652 GB, free: 9.176 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004176/0.5347, allocations: 214.9 kB / 0.6522 GB, free: 8.965 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001818/0.5366, allocations: 0.6233 MB / 0.6528 GB, free: 8.332 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004227/0.5408, allocations: 2.194 MB / 0.655 GB, free: 6.133 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.5408, allocations: 0 / 0.655 GB, free: 6.133 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5408, allocations: 0 / 0.655 GB, free: 6.133 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.967e-05/0.5409, allocations: 0 / 0.655 GB, free: 6.133 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.00335/0.5443, allocations: 1.481 MB / 0.6564 GB, free: 4.594 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.5443, allocations: 12.03 kB / 0.6564 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002396/0.5467, allocations: 470.9 kB / 0.6569 GB, free: 4.121 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002518/0.5493, allocations: 1.128 MB / 0.658 GB, free: 2.934 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/0.5497, allocations: 125.9 kB / 0.6581 GB, free: 2.812 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.5498, allocations: 83.94 kB / 0.6582 GB, free: 2.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.5521, allocations: 1.015 MB / 0.6592 GB, free: 1.672 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.5521, allocations: 0 / 0.6592 GB, free: 1.672 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.592e-05/0.5522, allocations: 32 kB / 0.6592 GB, free: 1.641 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.572e-05/0.5523, allocations: 20 kB / 0.6592 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002613/0.5549, allocations: 0.9211 MB / 0.6601 GB, free: 0.6992 MB / 494.1 MB 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.007292/0.5622, allocations: 4.899 MB / 0.6649 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003751/0.566, allocations: 0.9013 MB / 0.6658 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008308/0.5668, allocations: 327.5 kB / 0.6661 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006582/0.5675, allocations: 0.9024 MB / 0.667 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.5676, allocations: 42.5 kB / 0.667 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=43): time 2.685e-06/0.5676, allocations: 4 kB / 0.667 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.009514/0.5771, allocations: 2.153 MB / 0.6691 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.5772, allocations: 59.34 kB / 0.6692 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001886/0.5791, allocations: 1.059 MB / 0.6702 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.649e-05/0.5792, allocations: 33.7 kB / 0.6703 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00044/0.5796, allocations: 0.5234 MB / 0.6708 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.5798, allocations: 149.8 kB / 0.6709 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.894e-05/0.5799, allocations: 53.69 kB / 0.671 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.58, allocations: 330 kB / 0.6713 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009705/0.581, allocations: 324.9 kB / 0.6716 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.5821, allocations: 0.5337 MB / 0.6721 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/0.5839, allocations: 0.7318 MB / 0.6728 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.584, allocations: 4 kB / 0.6728 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002941/0.5869, allocations: 1.055 MB / 0.6739 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.5871, allocations: 217.3 kB / 0.6741 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.5871, allocations: 7.938 kB / 0.6741 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/0.5885, allocations: 324.6 kB / 0.6744 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005501/0.589, allocations: 135.8 kB / 0.6745 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.5906, allocations: 0.9365 MB / 0.6754 GB, free: 132 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.5921, allocations: 195.2 kB / 0.6756 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.653e-05/0.5922, allocations: 31.98 kB / 0.6756 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.5922, allocations: 4 kB / 0.6756 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002664/0.5949, allocations: 0.9102 MB / 0.6765 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.5949, allocations: 4.438 kB / 0.6765 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.5961, allocations: 324.5 kB / 0.6768 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005387/0.5967, allocations: 131.8 kB / 0.677 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.5983, allocations: 0.9323 MB / 0.6779 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.5996, allocations: 171.3 kB / 0.678 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-05/0.5997, allocations: 35.97 kB / 0.6781 GB, free: 13.38 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.0005588/0.6003, allocations: 348.9 kB / 0.6784 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/0.6005, allocations: 106.7 kB / 0.6785 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00415/0.6047, allocations: 1.203 MB / 0.6797 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.6047, allocations: 11.98 kB / 0.6797 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.6048, allocations: 0 / 0.6797 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.6048, allocations: 3.938 kB / 0.6797 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006013/0.6108, allocations: 2.257 MB / 0.6819 GB, free: 9.344 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.6108, allocations: 4 kB / 0.6819 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003054/0.6112, allocations: 75.89 kB / 0.682 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.6123, allocations: 320.9 kB / 0.6823 GB, free: 8.949 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.948e-05/0.6123, allocations: 11.98 kB / 0.6823 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001691/0.614, allocations: 0.9794 MB / 0.6833 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.6141, allocations: 64 / 0.6833 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004145/0.6182, allocations: 1.264 MB / 0.6845 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007509/0.619, allocations: 291.4 kB / 0.6848 GB, free: 6.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002955/0.6193, allocations: 8 kB / 0.6848 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.6204, allocations: 111.9 kB / 0.6849 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.573e-05/0.6205, allocations: 35.89 kB / 0.6849 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.077e-05/0.6206, allocations: 23.98 kB / 0.6849 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0013/0.6219, allocations: 0.7428 MB / 0.6857 GB, free: 5.391 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.6e-07/0.6219, allocations: 0 / 0.6857 GB, free: 5.391 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001734/0.6237, allocations: 0.5613 MB / 0.6862 GB, free: 4.828 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.0008437/0.6245, allocations: 372.9 kB / 0.6866 GB, free: 4.461 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003555/0.6281, allocations: 1.176 MB / 0.6877 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.6281, allocations: 0 / 0.6877 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009664/0.6291, allocations: 366.4 kB / 0.6881 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/0.6322, allocations: 0.5045 MB / 0.6886 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005693/0.6379, allocations: 2.522 MB / 0.691 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006314/0.6386, allocations: 1.065 MB / 0.6921 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0009552/0.6396, allocations: 232.5 kB / 0.6923 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.6398, allocations: 79.42 kB / 0.6924 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of SimCode: time 4.1e-07/0.6398, allocations: 0 / 0.6924 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of Templates: time 0.03797/0.6777, allocations: 23.89 MB / 0.7157 GB, free: 6.844 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)