Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") [: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.00374/0.00374, allocations: 180.4 kB / 7.454 MB, free: 2.512 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.243/1.243, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.001663/0.001663, allocations: 111.9 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.372e-06/6.412e-06, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07067/0.07069, allocations: 38.75 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2161/0.2868, allocations: 72.06 MB / 372.6 MB, free: 12.47 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.2871, allocations: 64.22 kB / 372.6 MB, free: 12.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.03833/0.3255, allocations: 13.44 MB / 386.1 MB, free: 1.473 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.044e-05/0.3256, allocations: 12 kB / 386.1 MB, free: 1.461 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002149/0.3277, allocations: 0.8919 MB / 387 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.3278, allocations: 8.031 kB / 387 MB, free: 0.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002895/0.3281, allocations: 83.06 kB / 387 MB, free: 472 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009473/0.3291, allocations: 460.8 kB / 387.5 MB, free: 32 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.3293, allocations: 79.91 kB / 387.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.3294, allocations: 28 kB / 387.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008125/0.3302, allocations: 355.3 kB / 388 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009108/0.3311, allocations: 0.5423 MB / 388.5 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.3312, allocations: 4 kB / 388.5 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.516e-05/0.3312, allocations: 3.906 kB / 388.5 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.3313, allocations: 12 kB / 388.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.3349, allocations: 1.787 MB / 390.3 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.3369, allocations: 0.631 MB / 390.9 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004071/0.3373, allocations: 217.8 kB / 391.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.283e-05/0.3374, allocations: 16.47 kB / 391.2 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.3374, allocations: 42.31 kB / 391.2 MB, free: 13.03 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 4.729e-06/0.3374, allocations: 0 / 391.2 MB, free: 13.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.002089/0.3395, allocations: 0.6639 MB / 391.9 MB, free: 12.49 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002867/0.3398, allocations: 0.5719 MB / 392.4 MB, free: 11.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005993/0.3404, allocations: 399 kB / 392.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/0.3405, allocations: 29.7 kB / 392.9 MB, free: 11.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.3407, allocations: 200.2 kB / 393.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3409, allocations: 188 kB / 393.2 MB, free: 11.1 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.3409, allocations: 0 / 393.2 MB, free: 11.1 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.3411, allocations: 369.9 kB / 393.6 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.3414, allocations: 150.2 kB / 393.7 MB, free: 10.67 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004501/0.3419, allocations: 368.4 kB / 394.1 MB, free: 10.31 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003407/0.3422, allocations: 182.1 kB / 394.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3422, allocations: 0 / 394.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002002/0.3442, allocations: 0.7064 MB / 395 MB, free: 9.633 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.3443, allocations: 4 kB / 395 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3443, allocations: 4 kB / 395 MB, free: 9.625 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.3453, allocations: 208.5 kB / 395.2 MB, free: 9.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008502/0.3462, allocations: 139.5 kB / 395.3 MB, free: 9.324 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007021/0.3532, allocations: 4.801 MB / 400.1 MB, free: 4.633 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007171/0.3539, allocations: 71.69 kB / 400.2 MB, free: 4.562 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.092e-05/0.354, allocations: 23.73 kB / 400.2 MB, free: 4.543 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real 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: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real valve.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.000356/0.3544, allocations: 142.1 kB / 400.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/0.3547, allocations: 63.25 kB / 400.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002316/0.357, allocations: 0.7007 MB / 401.1 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.357, allocations: 4 kB / 401.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.357, allocations: 4.188 kB / 401.1 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001971/0.359, allocations: 0.9537 MB / 402.1 MB, free: 2.855 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.362, allocations: 1.349 MB / 403.4 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.362, allocations: 4 kB / 403.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.363, allocations: 139.5 kB / 403.6 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007342/0.3637, allocations: 166.8 kB / 403.7 MB, free: 1.492 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-05/0.3638, allocations: 3.984 kB / 403.7 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004872/0.3687, allocations: 3.261 MB / 407 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.3687, allocations: 0 / 407 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002352/0.3711, allocations: 0.9495 MB / 408 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003881/0.3715, allocations: 199.6 kB / 408.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.97e-05/0.3716, allocations: 4 kB / 408.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004671/0.372, allocations: 31.97 kB / 408.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.3722, allocations: 34.95 kB / 408.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.184e-05/0.3722, allocations: 15.17 kB / 408.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0004702/0.3727, allocations: 315.5 kB / 408.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008789/0.3736, allocations: 191.7 kB / 408.7 MB, free: 12.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002346/0.3738, allocations: 119.2 kB / 408.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.3756, allocations: 0.7953 MB / 409.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3756, allocations: 8.125 kB / 409.7 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008045/0.3764, allocations: 464.7 kB / 410.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007249/0.3771, allocations: 139.9 kB / 410.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.3795, allocations: 0.9318 MB / 411.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007915/0.3803, allocations: 0.9545 MB / 412.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3803, allocations: 0 / 412.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of Templates: time 0.02248/0.4028, allocations: 11.52 MB / 423.7 MB, free: 14.22 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)