Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.002101/0.002101, allocations: 189.4 kB / 8.135 MB, free: 2.199 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.102/1.102, allocations: 194.2 MB / 202.8 MB, free: 8.746 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.001816/0.001816, allocations: 116 kB / 247.7 MB, free: 6.285 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.133e-06/7.254e-06, allocations: 3.938 kB / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0723/0.07232, allocations: 44.49 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.2648, allocations: 77.39 MB / 419.4 MB, free: 17.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.2651, allocations: 71.55 kB / 419.5 MB, free: 17.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03503/0.3001, allocations: 13.47 MB / 433 MB, free: 6.754 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.414e-05/0.3002, allocations: 12 kB / 433 MB, free: 6.742 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001555/0.3017, allocations: 0.8951 MB / 433.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3018, allocations: 8.031 kB / 433.9 MB, free: 5.824 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001745/0.302, allocations: 87.06 kB / 434 MB, free: 5.738 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006578/0.3026, allocations: 458.1 kB / 434.4 MB, free: 5.312 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.3028, allocations: 84.39 kB / 434.5 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.793e-05/0.3029, allocations: 31.94 kB / 434.5 MB, free: 5.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006625/0.3035, allocations: 358.5 kB / 434.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007066/0.3042, allocations: 0.5386 MB / 435.4 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.3043, allocations: 4 kB / 435.4 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.741e-05/0.3043, allocations: 0 / 435.4 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3043, allocations: 12 kB / 435.4 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.3072, allocations: 1.801 MB / 437.2 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3089, allocations: 0.6392 MB / 437.9 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.3093, allocations: 212 kB / 438.1 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.143e-05/0.3093, allocations: 8.484 kB / 438.1 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.3094, allocations: 45.75 kB / 438.1 MB, free: 2.285 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 2.775e-06/0.3094, allocations: 0 / 438.1 MB, free: 2.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.00189/0.3113, allocations: 0.6679 MB / 438.8 MB, free: 1.746 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/0.3114, allocations: 0.5676 MB / 439.4 MB, free: 1.047 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/0.3118, allocations: 393.3 kB / 439.8 MB, free: 0.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.3119, allocations: 29.7 kB / 439.8 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.195e-05/0.312, allocations: 205.2 kB / 440 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.3121, allocations: 187.3 kB / 440.2 MB, free: 376 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.3121, allocations: 0.8438 kB / 440.2 MB, free: 376 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.091e-05/0.3122, allocations: 367.1 kB / 440.5 MB, free: 24 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002954/0.3125, allocations: 149.2 kB / 440.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004408/0.313, allocations: 358.9 kB / 441 MB, free: 15.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.3133, allocations: 187.5 kB / 441.2 MB, free: 15.48 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.3133, allocations: 3.906 kB / 441.2 MB, free: 15.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002073/0.3154, allocations: 0.7079 MB / 441.9 MB, free: 14.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3154, allocations: 7.938 kB / 441.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3155, allocations: 0 / 441.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.3165, allocations: 206.4 kB / 442.1 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009429/0.3175, allocations: 139.8 kB / 442.3 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006483/0.3239, allocations: 4.813 MB / 447.1 MB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006419/0.3246, allocations: 71.73 kB / 447.2 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/0.3247, allocations: 21.03 kB / 447.2 MB, free: 9.824 MB / 330.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.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.0002213/0.3249, allocations: 130.6 kB / 447.3 MB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.3251, allocations: 63.25 kB / 447.4 MB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.3272, allocations: 0.7007 MB / 448.1 MB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3272, allocations: 8 kB / 448.1 MB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.3272, allocations: 0 / 448.1 MB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001907/0.3291, allocations: 0.9625 MB / 449 MB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/0.332, allocations: 1.347 MB / 450.4 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3321, allocations: 0 / 450.4 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009823/0.3331, allocations: 146.5 kB / 450.5 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000781/0.3339, allocations: 157.4 kB / 450.7 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.183e-05/0.3339, allocations: 4 kB / 450.7 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004829/0.3388, allocations: 3.276 MB / 454 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.3388, allocations: 0 / 454 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002285/0.3411, allocations: 0.9511 MB / 454.9 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.3414, allocations: 204.6 kB / 455.1 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.3416, allocations: 4 kB / 455.1 MB, free: 2.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005111/0.3421, allocations: 35.88 kB / 455.1 MB, free: 2.656 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.566e-05/0.3422, allocations: 28.08 kB / 455.2 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.3422, allocations: 19.61 kB / 455.2 MB, free: 2.617 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003781/0.3426, allocations: 315.4 kB / 455.5 MB, free: 2.391 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007708/0.3434, allocations: 195.7 kB / 455.7 MB, free: 2.199 MB / 330.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.0001937/0.3436, allocations: 123.2 kB / 455.8 MB, free: 2.066 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.3452, allocations: 0.7961 MB / 456.6 MB, free: 1.383 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3452, allocations: 4 kB / 456.6 MB, free: 1.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008546/0.3461, allocations: 470.8 kB / 457.1 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007031/0.3468, allocations: 140.5 kB / 457.2 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.3488, allocations: 0.8828 MB / 458.1 MB, free: 60 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006933/0.3495, allocations: 0.9485 MB / 459 MB, free: 15.08 MB / 346.7 MB Notification: Performance of SimCode: time 4.2e-07/0.3495, allocations: 0 / 459 MB, free: 15.08 MB / 346.7 MB Notification: Performance of Templates: time 0.0208/0.3703, allocations: 11.62 MB / 470.7 MB, free: 3.523 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)