Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001376/0.001376, allocations: 171.5 kB / 7.638 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.165/1.165, allocations: 170.7 MB / 178.7 MB, free: 15.65 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.001529/0.001529, allocations: 107.4 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.452e-05, allocations: 4 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06192/0.06195, allocations: 38.78 MB / 301 MB, free: 3.629 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2354/0.2974, allocations: 71.17 MB / 372.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.2977, allocations: 70.97 kB / 372.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03864/0.3364, allocations: 15.47 MB / 387.7 MB, free: 464 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3364, allocations: 0 / 387.7 MB, free: 464 kB / 266.7 MB Notification: Performance of Transformations before backend: time 3.367e-05/0.3365, allocations: 16 kB / 387.7 MB, free: 448 kB / 266.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.001681/0.3382, allocations: 1.036 MB / 388.7 MB, free: 15.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3382, allocations: 8.031 kB / 388.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.3384, allocations: 106.9 kB / 388.9 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008095/0.3392, allocations: 0.5144 MB / 389.4 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.3394, allocations: 126.7 kB / 389.5 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.42e-05/0.3395, allocations: 35.95 kB / 389.5 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008434/0.3404, allocations: 475 kB / 390 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009449/0.3413, allocations: 0.6916 MB / 390.7 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.3414, allocations: 0 / 390.7 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.181e-05/0.3414, allocations: 4 kB / 390.7 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.3414, allocations: 12 kB / 390.7 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/0.3445, allocations: 1.933 MB / 392.6 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009455/0.3455, allocations: 0.8741 MB / 393.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003783/0.3458, allocations: 318 kB / 393.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.673e-05/0.3459, allocations: 12.77 kB / 393.8 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.346, allocations: 50.34 kB / 393.9 MB, free: 11.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 2.625e-06/0.346, allocations: 0 / 393.9 MB, free: 11.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=74): time 0.00181/0.3478, allocations: 0.8302 MB / 394.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002787/0.3481, allocations: 0.8274 MB / 395.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004896/0.3486, allocations: 479.2 kB / 396 MB, free: 9.172 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3486, allocations: 29.7 kB / 396 MB, free: 9.137 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.3488, allocations: 317.1 kB / 396.3 MB, free: 8.941 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.349, allocations: 241.3 kB / 396.6 MB, free: 8.73 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.321e-05/0.349, allocations: 0 / 396.6 MB, free: 8.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3492, allocations: 381.9 kB / 397 MB, free: 8.379 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.3495, allocations: 206.1 kB / 397.2 MB, free: 8.262 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004948/0.35, allocations: 469.6 kB / 397.6 MB, free: 7.828 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000357/0.3504, allocations: 252.7 kB / 397.9 MB, free: 7.672 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3504, allocations: 0 / 397.9 MB, free: 7.672 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001806/0.3522, allocations: 0.8831 MB / 398.7 MB, free: 6.977 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.326e-05/0.3523, allocations: 85.11 kB / 398.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3523, allocations: 7.938 kB / 398.8 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005472/0.3528, allocations: 206.8 kB / 399 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006022/0.3534, allocations: 147.1 kB / 399.2 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/0.359, allocations: 6.011 MB / 405.2 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006466/0.3597, allocations: 95.44 kB / 405.3 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.604e-05/0.3598, allocations: 23.73 kB / 405.3 MB, free: 0.5391 MB / 282.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 pump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" 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.000227/0.36, allocations: 137 kB / 405.4 MB, free: 408 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.3601, allocations: 75.38 kB / 405.5 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001838/0.3603, allocations: 80.84 kB / 405.6 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3603, allocations: 15.89 kB / 405.6 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3603, allocations: 0 / 405.6 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001708/0.362, allocations: 1.124 MB / 406.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.3649, allocations: 1.712 MB / 408.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3649, allocations: 0 / 408.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006748/0.3656, allocations: 147.8 kB / 408.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003823/0.366, allocations: 170.4 kB / 408.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.366, allocations: 0 / 408.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004823/0.3709, allocations: 4.631 MB / 413.4 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3709, allocations: 4.125 kB / 413.4 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002307/0.3732, allocations: 1.215 MB / 414.6 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.3734, allocations: 160.1 kB / 414.8 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.3735, allocations: 4 kB / 414.8 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004863/0.374, allocations: 47.95 kB / 414.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.3742, allocations: 56.69 kB / 414.9 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/0.3742, allocations: 31.94 kB / 414.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004495/0.3747, allocations: 363 kB / 415.3 MB, free: 6.531 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3747, allocations: 0 / 415.3 MB, free: 6.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008085/0.3755, allocations: 251.7 kB / 415.5 MB, free: 6.285 MB / 298.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.0001811/0.3757, allocations: 119.3 kB / 415.6 MB, free: 6.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.3771, allocations: 1.178 MB / 416.8 MB, free: 4.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3771, allocations: 8 kB / 416.8 MB, free: 4.898 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009919/0.3781, allocations: 0.6992 MB / 417.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007953/0.3789, allocations: 171.4 kB / 417.7 MB, free: 4.008 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.3813, allocations: 1.222 MB / 418.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.3818, allocations: 0.948 MB / 419.8 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003643/0.3821, allocations: 89.92 kB / 419.9 MB, free: 1.688 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.3823, allocations: 59.44 kB / 420 MB, free: 1.629 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3823, allocations: 3.938 kB / 420 MB, free: 1.625 MB / 298.7 MB Notification: Performance of Templates: time 0.0214/0.4037, allocations: 14.18 MB / 434.2 MB, free: 3.422 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)