Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.00196/0.00196, allocations: 191.7 kB / 8.139 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.209/1.209, allocations: 194.2 MB / 202.8 MB, free: 8.641 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001899/0.001899, allocations: 121.3 kB / 247.8 MB, free: 6.418 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.148e-06/9.188e-06, allocations: 4 kB / 297.6 MB, free: 8.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09681, allocations: 44.48 MB / 342.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.555/4.652, allocations: 2.587 GB / 2.921 GB, free: 111.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/4.652, allocations: 81.47 kB / 2.921 GB, free: 111.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.494/8.146, allocations: 0.956 GB / 3.877 GB, free: 22.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002966/8.147, allocations: 54.89 kB / 3.877 GB, free: 22.88 MB / 442.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.01893/8.165, allocations: 3.413 MB / 3.881 GB, free: 21.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/8.166, allocations: 9.812 kB / 3.881 GB, free: 21.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03066/8.196, allocations: 1.71 MB / 3.882 GB, free: 21.24 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006204/8.202, allocations: 1.528 MB / 3.884 GB, free: 20.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003562/8.203, allocations: 283.9 kB / 3.884 GB, free: 20.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008769/8.204, allocations: 113.3 kB / 3.884 GB, free: 20.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005424/8.209, allocations: 2.678 MB / 3.887 GB, free: 20.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005843/8.215, allocations: 2.713 MB / 3.89 GB, free: 20.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.942e-05/8.215, allocations: 8.031 kB / 3.89 GB, free: 20.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005202/8.216, allocations: 11.8 kB / 3.89 GB, free: 20.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001671/8.216, allocations: 112.8 kB / 3.89 GB, free: 20.24 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02279/8.239, allocations: 14.43 MB / 3.904 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/8.241, allocations: 1.431 MB / 3.905 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/8.243, allocations: 1.233 MB / 3.906 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03964/8.282, allocations: 19.78 MB / 3.926 GB, free: 16.58 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.244e-05/8.283, allocations: 62.41 kB / 3.926 GB, free: 16.53 MB / 458.7 MB Notification: Performance of pre-optimization done (n=175): time 3.767e-06/8.283, allocations: 0 / 3.926 GB, free: 16.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.03551/8.318, allocations: 10.44 MB / 3.936 GB, free: 15.68 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.961e-05/8.318, allocations: 150.6 kB / 3.936 GB, free: 15.52 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/8.32, allocations: 0.8509 MB / 3.937 GB, free: 15.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003779/8.32, allocations: 29.58 kB / 3.937 GB, free: 15.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003807/8.321, allocations: 0.6377 MB / 3.938 GB, free: 14.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00076/8.321, allocations: 0.6527 MB / 3.938 GB, free: 14.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002544/8.322, allocations: 0 / 3.938 GB, free: 14.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002597/8.322, allocations: 389.2 kB / 3.939 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/8.324, allocations: 1.223 MB / 3.94 GB, free: 14.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/8.326, allocations: 1.677 MB / 3.941 GB, free: 13.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006319/8.332, allocations: 2.006 MB / 3.943 GB, free: 13.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-05/8.332, allocations: 8.594 kB / 3.943 GB, free: 13.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01952/8.352, allocations: 5.387 MB / 3.949 GB, free: 13.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001735/8.354, allocations: 4.883 MB / 3.953 GB, free: 8.363 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.11e-05/8.354, allocations: 14.31 kB / 3.953 GB, free: 8.363 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004508/8.358, allocations: 1.588 MB / 3.955 GB, free: 8.285 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002715/8.361, allocations: 0.4904 MB / 3.955 GB, free: 8.285 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/8.372, allocations: 7.644 MB / 3.963 GB, free: 19.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003139/8.375, allocations: 190.6 kB / 3.963 GB, free: 19.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006408/8.375, allocations: 139.2 kB / 3.963 GB, free: 19.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/8.375, allocations: 8.094 kB / 3.963 GB, free: 19.54 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009193/8.385, allocations: 3.458 MB / 3.967 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.301e-05/8.385, allocations: 12.38 kB / 3.967 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002614/8.387, allocations: 1.024 MB / 3.968 GB, free: 19.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002807/8.39, allocations: 0.5266 MB / 3.968 GB, free: 19.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/8.4, allocations: 9.639 MB / 3.978 GB, free: 12.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003055/8.403, allocations: 188.6 kB / 3.978 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006933/8.404, allocations: 126.9 kB / 3.978 GB, free: 12.27 MB / 474.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.001715/8.406, allocations: 215.8 kB / 3.978 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002867/8.409, allocations: 0.6806 MB / 3.979 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02/8.429, allocations: 10.22 MB / 3.989 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.16e-05/8.429, allocations: 89.5 kB / 3.989 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/8.429, allocations: 0 / 3.989 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.961e-05/8.429, allocations: 12.98 kB / 3.989 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02119/8.45, allocations: 13.33 MB / 4.002 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/8.45, allocations: 2.672 kB / 4.002 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/8.452, allocations: 351.2 kB / 4.002 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006907/8.459, allocations: 4.229 MB / 4.006 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005498/8.46, allocations: 43.86 kB / 4.006 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/8.472, allocations: 9.791 MB / 4.016 GB, free: 3.266 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/8.472, allocations: 4.125 kB / 4.016 GB, free: 3.262 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.22/8.692, allocations: 11.27 MB / 4.027 GB, free: 73.61 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/8.694, allocations: 0.6676 MB / 4.028 GB, free: 73.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005075/8.694, allocations: 6.562 kB / 4.028 GB, free: 73.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002435/8.697, allocations: 212.6 kB / 4.028 GB, free: 73.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005279/8.697, allocations: 235.5 kB / 4.028 GB, free: 73.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002558/8.697, allocations: 100.9 kB / 4.028 GB, free: 73.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0008251/8.698, allocations: 0.613 MB / 4.029 GB, free: 73.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01071/8.709, allocations: 2.218 MB / 4.031 GB, free: 73.41 MB / 474.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.01026/8.719, allocations: 2.85 MB / 4.034 GB, free: 73.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01191/8.731, allocations: 7.006 MB / 4.04 GB, free: 72.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/8.731, allocations: 5.594 kB / 4.04 GB, free: 72.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00589/8.737, allocations: 3.938 MB / 4.044 GB, free: 72.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004606/8.742, allocations: 0.8571 MB / 4.045 GB, free: 72.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/8.753, allocations: 6.695 MB / 4.052 GB, free: 71.81 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002167/8.756, allocations: 2.261 MB / 4.054 GB, free: 71.05 MB / 474.7 MB Notification: Performance of SimCode: time 9.62e-07/8.756, allocations: 0 / 4.054 GB, free: 71.05 MB / 474.7 MB Notification: Performance of Templates: time 0.1508/8.906, allocations: 103.6 MB / 4.155 GB, free: 60.93 MB / 474.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)