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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001099/0.001099, allocations: 166.8 kB / 7.636 MB, free: 1.418 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.23/1.23, allocations: 170.7 MB / 178.7 MB, free: 15.57 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.001634/0.001634, allocations: 107.4 kB / 218 MB, free: 8.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.433e-05/1.434e-05, allocations: 0 / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06528/0.06531, allocations: 38.78 MB / 301 MB, free: 3.625 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2333/0.2987, allocations: 72.12 MB / 373.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.299, allocations: 71.33 kB / 373.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03571/0.3347, allocations: 13.63 MB / 386.8 MB, free: 1.082 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.3347, allocations: 0 / 386.8 MB, free: 1.082 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.152e-05/0.3348, allocations: 12 kB / 386.8 MB, free: 1.07 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.001392/0.3362, allocations: 0.8795 MB / 387.7 MB, free: 184 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3362, allocations: 8.031 kB / 387.7 MB, free: 176 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.3364, allocations: 95 kB / 387.8 MB, free: 80 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006056/0.337, allocations: 445.9 kB / 388.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.3371, allocations: 80.72 kB / 388.3 MB, free: 15.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.81e-05/0.3372, allocations: 27.95 kB / 388.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006091/0.3378, allocations: 358.9 kB / 388.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007408/0.3386, allocations: 0.5429 MB / 389.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.3386, allocations: 3.906 kB / 389.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.3387, allocations: 4 kB / 389.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3387, allocations: 8 kB / 389.3 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002657/0.3413, allocations: 1.773 MB / 391 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.343, allocations: 0.6427 MB / 391.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.3433, allocations: 217.2 kB / 391.9 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.751e-05/0.3433, allocations: 8.562 kB / 391.9 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.3434, allocations: 45.86 kB / 391.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.094e-06/0.3434, allocations: 0 / 391.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.001718/0.3451, allocations: 0.6592 MB / 392.6 MB, free: 12.14 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003084/0.3454, allocations: 0.5639 MB / 393.2 MB, free: 11.45 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004356/0.3459, allocations: 404.1 kB / 393.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.635e-05/0.3459, allocations: 25.7 kB / 393.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.3461, allocations: 273.1 kB / 393.8 MB, free: 10.93 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3463, allocations: 189.9 kB / 394 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.661e-05/0.3463, allocations: 4 kB / 394 MB, free: 10.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3464, allocations: 369.8 kB / 394.4 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.3467, allocations: 154.9 kB / 394.5 MB, free: 10.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/0.3471, allocations: 359.2 kB / 394.9 MB, free: 9.977 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.3474, allocations: 188.2 kB / 395.1 MB, free: 9.859 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3474, allocations: 0 / 395.1 MB, free: 9.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001728/0.3491, allocations: 0.7027 MB / 395.8 MB, free: 9.297 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.3492, allocations: 33.7 kB / 395.8 MB, free: 9.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3492, allocations: 0 / 395.8 MB, free: 9.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008382/0.35, allocations: 216 kB / 396 MB, free: 9.082 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007446/0.3508, allocations: 135.5 kB / 396.2 MB, free: 8.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005571/0.3564, allocations: 4.863 MB / 401 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006577/0.3571, allocations: 67.77 kB / 401.1 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.607e-05/0.3571, allocations: 19.69 kB / 401.1 MB, free: 4.188 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.000243/0.3574, allocations: 130.2 kB / 401.2 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3575, allocations: 67.19 kB / 401.3 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.3593, allocations: 0.6907 MB / 402 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3593, allocations: 4 kB / 402 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.3593, allocations: 0 / 402 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00153/0.3608, allocations: 0.9514 MB / 402.9 MB, free: 2.516 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.3633, allocations: 1.339 MB / 404.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3633, allocations: 3.953 kB / 404.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007741/0.3641, allocations: 142.5 kB / 404.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005952/0.3647, allocations: 157.1 kB / 404.6 MB, free: 1.172 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/0.3647, allocations: 15.17 kB / 404.6 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003851/0.3686, allocations: 3.289 MB / 407.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3686, allocations: 0 / 407.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.3705, allocations: 0.9388 MB / 408.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.3708, allocations: 195.2 kB / 409 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.758e-05/0.3709, allocations: 4 kB / 409 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/0.3713, allocations: 31.97 kB / 409 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.3714, allocations: 46.69 kB / 409.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.3715, allocations: 15.48 kB / 409.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003617/0.3718, allocations: 314.1 kB / 409.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3718, allocations: 3.938 kB / 409.4 MB, free: 12.78 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007352/0.3726, allocations: 199.4 kB / 409.6 MB, free: 12.59 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.000181/0.3728, allocations: 123.1 kB / 409.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.3741, allocations: 0.8665 MB / 410.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.3741, allocations: 4 kB / 410.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007158/0.3749, allocations: 489.4 kB / 411.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/0.3755, allocations: 139.7 kB / 411.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.3772, allocations: 0.8959 MB / 412.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.3777, allocations: 0.8956 MB / 413 MB, free: 9.113 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003062/0.378, allocations: 68.84 kB / 413.1 MB, free: 9.043 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.3781, allocations: 55.42 kB / 413.1 MB, free: 8.988 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3781, allocations: 4 kB / 413.1 MB, free: 8.984 MB / 298.7 MB Notification: Performance of Templates: time 0.01718/0.3953, allocations: 11.07 MB / 424.2 MB, free: 13.89 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)