Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003504/0.003503, allocations: 179.4 kB / 7.452 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.554/1.554, allocations: 170.6 MB / 178.4 MB, free: 15.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001934/0.001933, allocations: 119.7 kB / 217.7 MB, free: 8.242 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.562e-06/6.793e-06, allocations: 0 / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.09849, allocations: 38.76 MB / 300.5 MB, free: 3.922 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.807/6.906, allocations: 2.478 GB / 2.771 GB, free: 48.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/6.906, allocations: 86.7 kB / 2.771 GB, free: 47.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.079/10.99, allocations: 0.931 GB / 3.702 GB, free: 19.35 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002366/10.99, allocations: 57.56 kB / 3.702 GB, free: 19.34 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.01793/11, allocations: 3.339 MB / 3.705 GB, free: 17.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.474e-05/11, allocations: 10.75 kB / 3.705 GB, free: 17.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01666/11.02, allocations: 1.59 MB / 3.707 GB, free: 17.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00695/11.03, allocations: 1.531 MB / 3.708 GB, free: 17.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006172/11.03, allocations: 284.5 kB / 3.709 GB, free: 17.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001457/11.03, allocations: 114.3 kB / 3.709 GB, free: 17.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008465/11.04, allocations: 2.676 MB / 3.711 GB, free: 17.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009024/11.05, allocations: 2.707 MB / 3.714 GB, free: 16.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/11.05, allocations: 8.594 kB / 3.714 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008482/11.05, allocations: 6.516 kB / 3.714 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001786/11.05, allocations: 115.6 kB / 3.714 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02787/11.08, allocations: 14.43 MB / 3.728 GB, free: 9.367 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/11.08, allocations: 1.439 MB / 3.73 GB, free: 9.344 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002038/11.08, allocations: 1.235 MB / 3.731 GB, free: 9.332 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04795/11.13, allocations: 19.73 MB / 3.75 GB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/11.13, allocations: 61.12 kB / 3.75 GB, free: 12.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 9.097e-06/11.13, allocations: 4 kB / 3.75 GB, free: 12.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.04868/11.18, allocations: 10.46 MB / 3.76 GB, free: 11.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/11.18, allocations: 150.8 kB / 3.761 GB, free: 11.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002631/11.18, allocations: 0.8524 MB / 3.761 GB, free: 11.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006002/11.18, allocations: 30.08 kB / 3.761 GB, free: 11.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006532/11.18, allocations: 0.6297 MB / 3.762 GB, free: 11.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00121/11.18, allocations: 0.6517 MB / 3.763 GB, free: 10.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004128/11.18, allocations: 0 / 3.763 GB, free: 10.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003776/11.18, allocations: 391.9 kB / 3.763 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003096/11.19, allocations: 1.226 MB / 3.764 GB, free: 10.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003461/11.19, allocations: 1.667 MB / 3.766 GB, free: 9.793 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00806/11.2, allocations: 2.004 MB / 3.768 GB, free: 9.738 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.122e-05/11.2, allocations: 3.25 kB / 3.768 GB, free: 9.738 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01954/11.22, allocations: 5.401 MB / 3.773 GB, free: 9.438 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003353/11.22, allocations: 4.88 MB / 3.778 GB, free: 4.312 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-05/11.22, allocations: 12.03 kB / 3.778 GB, free: 4.312 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005358/11.23, allocations: 1.582 MB / 3.779 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003279/11.23, allocations: 0.4905 MB / 3.78 GB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/11.24, allocations: 7.644 MB / 3.787 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/11.25, allocations: 192 kB / 3.788 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/11.25, allocations: 132.1 kB / 3.788 GB, free: 15.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/11.25, allocations: 8.062 kB / 3.788 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01223/11.26, allocations: 3.461 MB / 3.791 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.026e-05/11.26, allocations: 13.19 kB / 3.791 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/11.26, allocations: 1.026 MB / 3.792 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003251/11.27, allocations: 0.5232 MB / 3.793 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/11.28, allocations: 9.652 MB / 3.802 GB, free: 8.156 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003936/11.28, allocations: 189.1 kB / 3.802 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009823/11.28, allocations: 129.2 kB / 3.802 GB, free: 8.121 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot3.mb_flow:VARIABLE(min = max(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), -100000.0) max = min(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), 100000.0) unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot1.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot1.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot1.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankCold1.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold2.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 21 (openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,4 6,2 4,2 4,4 6,2 4,2 4,4 8} Notification: Performance of prepare postOptimizeDAE: time 0.002133/11.29, allocations: 207.2 kB / 3.803 GB, free: 7.973 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003626/11.29, allocations: 0.6803 MB / 3.803 GB, free: 7.887 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0228/11.31, allocations: 10.22 MB / 3.813 GB, free: 2.305 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.811e-05/11.31, allocations: 91.62 kB / 3.813 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.82e-05/11.31, allocations: 0 / 3.813 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.68e-05/11.31, allocations: 10.27 kB / 3.813 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3219/11.63, allocations: 13.35 MB / 3.826 GB, free: 69.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/11.63, allocations: 7.797 kB / 3.826 GB, free: 69.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/11.64, allocations: 346.8 kB / 3.827 GB, free: 69.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00618/11.64, allocations: 4.228 MB / 3.831 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004851/11.64, allocations: 47.97 kB / 3.831 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/11.65, allocations: 9.772 MB / 3.84 GB, free: 64.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.595e-06/11.65, allocations: 3.25 kB / 3.84 GB, free: 64.75 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01942/11.67, allocations: 11.21 MB / 3.851 GB, free: 64.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/11.68, allocations: 0.6648 MB / 3.852 GB, free: 64.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/11.68, allocations: 12.7 kB / 3.852 GB, free: 64.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/11.68, allocations: 206.5 kB / 3.852 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005157/11.68, allocations: 236.3 kB / 3.852 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002378/11.68, allocations: 107 kB / 3.853 GB, free: 64.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0009835/11.68, allocations: 0.6148 MB / 3.853 GB, free: 63.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0125/11.69, allocations: 2.191 MB / 3.855 GB, free: 63.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.medium.h,openTankCold2.level,openTankCold1.medium.h,openTankCold1.level,openTankHot1.medium.h,openTankHot1.level,openTankHot2.medium.h,openTankHot2.level,openTankCold3.medium.h,openTankCold3.level,openTankHot3.medium.h,openTankHot3.level) * Number of discrete variables: 65 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01389/11.71, allocations: 2.835 MB / 3.858 GB, free: 63.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01523/11.72, allocations: 7.017 MB / 3.865 GB, free: 63.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.866e-05/11.72, allocations: 3.438 kB / 3.865 GB, free: 63.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008286/11.73, allocations: 3.933 MB / 3.869 GB, free: 63.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005663/11.74, allocations: 0.8457 MB / 3.87 GB, free: 63.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/11.75, allocations: 6.698 MB / 3.876 GB, free: 62.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002714/11.75, allocations: 2.258 MB / 3.878 GB, free: 61.54 MB / 426.7 MB Notification: Performance of SimCode: time 2.104e-06/11.75, allocations: 5.953 kB / 3.878 GB, free: 61.54 MB / 426.7 MB Notification: Performance of Templates: time 0.475/12.23, allocations: 103.2 MB / 3.979 GB, free: 69.57 MB / 426.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)