Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [: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.00158/0.00158, allocations: 189.3 kB / 8.132 MB, free: 2.086 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.117/1.117, allocations: 194.2 MB / 202.8 MB, free: 8.676 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.001738/0.001738, allocations: 114.3 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.331e-05/1.336e-05, allocations: 4 kB / 297.6 MB, free: 8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0671/0.06713, allocations: 44.49 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1835/0.2506, allocations: 76.44 MB / 418.5 MB, free: 18.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001653/0.2508, allocations: 73.64 kB / 418.6 MB, free: 18.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03852/0.2894, allocations: 15.41 MB / 434 MB, free: 6.125 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.089e-05/0.2894, allocations: 16 kB / 434 MB, free: 6.109 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001576/0.291, allocations: 1.056 MB / 435 MB, free: 5.039 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.291, allocations: 12.02 kB / 435.1 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.2912, allocations: 98.97 kB / 435.1 MB, free: 4.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007717/0.292, allocations: 0.5291 MB / 435.7 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/0.2922, allocations: 126.4 kB / 435.8 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.874e-05/0.2923, allocations: 47.41 kB / 435.8 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007987/0.2931, allocations: 467 kB / 436.3 MB, free: 3.973 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008255/0.2939, allocations: 0.6863 MB / 437 MB, free: 3.348 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.2939, allocations: 0 / 437 MB, free: 3.348 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.628e-05/0.294, allocations: 4 kB / 437 MB, free: 3.344 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.294, allocations: 15.98 kB / 437 MB, free: 3.328 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002807/0.2968, allocations: 1.964 MB / 439 MB, free: 1.797 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006206/0.2974, allocations: 435.2 kB / 439.4 MB, free: 1.527 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.298, allocations: 349.1 kB / 439.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.256e-05/0.298, allocations: 15.58 kB / 439.8 MB, free: 1.293 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.2981, allocations: 46.28 kB / 439.8 MB, free: 1.246 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 1.923e-06/0.2981, allocations: 0 / 439.8 MB, free: 1.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.001977/0.3001, allocations: 0.8483 MB / 440.6 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002319/0.3003, allocations: 0.818 MB / 441.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/0.3009, allocations: 476.5 kB / 441.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.012e-05/0.301, allocations: 31.11 kB / 442 MB, free: 15.17 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.3011, allocations: 224.6 kB / 442.2 MB, free: 14.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.3013, allocations: 245.7 kB / 442.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.819e-05/0.3014, allocations: 4 kB / 442.4 MB, free: 14.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3015, allocations: 377.7 kB / 442.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.3019, allocations: 201.4 kB / 443 MB, free: 14.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005636/0.3025, allocations: 469.3 kB / 443.4 MB, free: 13.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.3029, allocations: 250.8 kB / 443.7 MB, free: 13.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3029, allocations: 4 kB / 443.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002213/0.3051, allocations: 0.8976 MB / 444.6 MB, free: 13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.3051, allocations: 4.781 kB / 444.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3052, allocations: 0 / 444.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006401/0.3058, allocations: 209.3 kB / 444.8 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007639/0.3066, allocations: 147.3 kB / 444.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006991/0.3136, allocations: 6.057 MB / 451 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007323/0.3143, allocations: 103.4 kB / 451.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.3145, allocations: 22.56 kB / 451.1 MB, free: 6.539 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002277/0.3147, allocations: 133.3 kB / 451.3 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.3149, allocations: 83.06 kB / 451.3 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.315, allocations: 78.84 kB / 451.4 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3151, allocations: 8 kB / 451.4 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3151, allocations: 0 / 451.4 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002059/0.3171, allocations: 1.137 MB / 452.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003215/0.3204, allocations: 1.738 MB / 454.3 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3204, allocations: 0 / 454.3 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008305/0.3212, allocations: 159.6 kB / 454.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004453/0.3217, allocations: 162.4 kB / 454.6 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.887e-05/0.3217, allocations: 12.39 kB / 454.6 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005366/0.3271, allocations: 4.62 MB / 459.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3271, allocations: 0 / 459.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002563/0.3297, allocations: 1.234 MB / 460.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.3299, allocations: 163.4 kB / 460.6 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.33, allocations: 4 kB / 460.6 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005815/0.3306, allocations: 44.53 kB / 460.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.3307, allocations: 49.95 kB / 460.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.808e-05/0.3308, allocations: 24.67 kB / 460.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000443/0.3312, allocations: 363.4 kB / 461.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007726/0.332, allocations: 252.2 kB / 461.4 MB, free: 13.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001784/0.3322, allocations: 125 kB / 461.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.3341, allocations: 1.117 MB / 462.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/0.3341, allocations: 4 kB / 462.6 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.3353, allocations: 0.6717 MB / 463.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007944/0.3361, allocations: 171.7 kB / 463.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.3386, allocations: 1.225 MB / 464.7 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006871/0.3393, allocations: 1.018 MB / 465.7 MB, free: 9.293 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3393, allocations: 3.938 kB / 465.7 MB, free: 9.289 MB / 346.7 MB Notification: Performance of Templates: time 0.02346/0.3628, allocations: 14.65 MB / 480.3 MB, free: 10.7 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)