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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001333/0.001333, allocations: 188.5 kB / 8.353 MB, free: 0.707 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.487/1.487, allocations: 194.3 MB / 203.1 MB, free: 9.258 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00198/0.00198, allocations: 120.5 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.42e-05/1.423e-05, allocations: 0 / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3296/0.4396, allocations: 77.46 MB / 420 MB, free: 18.42 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001697/0.4398, allocations: 69.09 kB / 420.1 MB, free: 18.39 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03089/0.4707, allocations: 13.67 MB / 433.8 MB, free: 7.324 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4708, allocations: 0 / 433.8 MB, free: 7.324 MB / 315.1 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.4708, allocations: 16 kB / 433.8 MB, free: 7.309 MB / 315.1 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.001288/0.4721, allocations: 0.8827 MB / 434.7 MB, free: 6.414 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4722, allocations: 12.03 kB / 434.7 MB, free: 6.402 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.4723, allocations: 88.78 kB / 434.8 MB, free: 6.316 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.4728, allocations: 447 kB / 435.2 MB, free: 5.902 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.4729, allocations: 84.67 kB / 435.3 MB, free: 5.812 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.473, allocations: 28 kB / 435.3 MB, free: 5.785 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005785/0.4736, allocations: 358.3 kB / 435.7 MB, free: 5.559 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006838/0.4743, allocations: 0.5381 MB / 436.2 MB, free: 5.07 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.4743, allocations: 4 kB / 436.2 MB, free: 5.066 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.4744, allocations: 0 / 436.2 MB, free: 5.066 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.4744, allocations: 12 kB / 436.2 MB, free: 5.055 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.4767, allocations: 1.781 MB / 438 MB, free: 3.605 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.4783, allocations: 0.6494 MB / 438.6 MB, free: 3.082 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002629/0.4785, allocations: 213.4 kB / 438.8 MB, free: 2.953 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.4786, allocations: 16.53 kB / 438.9 MB, free: 2.938 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.4786, allocations: 50.7 kB / 438.9 MB, free: 2.887 MB / 315.1 MB Notification: Performance of pre-optimization done (n=56): time 1.904e-06/0.4786, allocations: 0 / 438.9 MB, free: 2.887 MB / 315.1 MB Notification: Performance of matching and sorting (n=56): time 0.001562/0.4802, allocations: 0.6613 MB / 439.6 MB, free: 2.359 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.4803, allocations: 0.5638 MB / 440.1 MB, free: 1.66 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.4807, allocations: 396.5 kB / 440.5 MB, free: 1.359 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/0.4808, allocations: 29.7 kB / 440.6 MB, free: 1.324 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.4809, allocations: 280.7 kB / 440.8 MB, free: 1.137 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.4811, allocations: 190.2 kB / 441 MB, free: 0.9688 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.4811, allocations: 0 / 441 MB, free: 0.9688 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.4812, allocations: 363.2 kB / 441.4 MB, free: 0.6289 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.4814, allocations: 152.8 kB / 441.5 MB, free: 0.543 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003214/0.4817, allocations: 363.4 kB / 441.9 MB, free: 208 kB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.482, allocations: 181.1 kB / 442 MB, free: 92 kB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.482, allocations: 0 / 442 MB, free: 92 kB / 315.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001663/0.4837, allocations: 0.7074 MB / 442.8 MB, free: 15.52 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.455e-05/0.4837, allocations: 39.02 kB / 442.8 MB, free: 15.48 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.4837, allocations: 2.344 kB / 442.8 MB, free: 15.48 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008142/0.4846, allocations: 203.9 kB / 443 MB, free: 15.31 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007982/0.4854, allocations: 137.9 kB / 443.1 MB, free: 15.18 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005556/0.4909, allocations: 4.864 MB / 448 MB, free: 10.5 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006162/0.4916, allocations: 67.69 kB / 448.1 MB, free: 10.43 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.4916, allocations: 19.8 kB / 448.1 MB, free: 10.42 MB / 331.1 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.0002456/0.4919, allocations: 128.4 kB / 448.2 MB, free: 10.29 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.492, allocations: 67.28 kB / 448.3 MB, free: 10.22 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.4938, allocations: 0.6918 MB / 449 MB, free: 9.688 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.4938, allocations: 8 kB / 449 MB, free: 9.68 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.4938, allocations: 5.109 kB / 449 MB, free: 9.676 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001568/0.4954, allocations: 0.9437 MB / 449.9 MB, free: 8.75 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002754/0.4982, allocations: 1.348 MB / 451.3 MB, free: 7.668 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.4982, allocations: 4 kB / 451.3 MB, free: 7.664 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007751/0.499, allocations: 138.5 kB / 451.4 MB, free: 7.535 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000591/0.4996, allocations: 152.2 kB / 451.6 MB, free: 7.406 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.538e-05/0.4996, allocations: 6.938 kB / 451.6 MB, free: 7.402 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004218/0.5038, allocations: 3.308 MB / 454.9 MB, free: 4.219 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5039, allocations: 0 / 454.9 MB, free: 4.219 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.5058, allocations: 0.9365 MB / 455.8 MB, free: 3.508 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002968/0.5061, allocations: 203 kB / 456 MB, free: 3.324 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.553e-05/0.5062, allocations: 4 kB / 456 MB, free: 3.32 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003967/0.5066, allocations: 35.95 kB / 456 MB, free: 3.285 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.5068, allocations: 47.17 kB / 456.1 MB, free: 3.246 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.5068, allocations: 19.86 kB / 456.1 MB, free: 3.23 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0003815/0.5072, allocations: 309.6 kB / 456.4 MB, free: 3.008 MB / 331.1 MB Notification: Performance of sort global known variables: time 2.114e-06/0.5072, allocations: 0 / 456.4 MB, free: 3.008 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0008349/0.508, allocations: 207.6 kB / 456.6 MB, free: 2.805 MB / 331.1 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.0002091/0.5083, allocations: 119.1 kB / 456.7 MB, free: 2.68 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.5098, allocations: 0.8703 MB / 457.6 MB, free: 1.934 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.5098, allocations: 0 / 457.6 MB, free: 1.934 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000779/0.5106, allocations: 486 kB / 458.1 MB, free: 1.527 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007156/0.5113, allocations: 146 kB / 458.2 MB, free: 1.418 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.5129, allocations: 0.8538 MB / 459.1 MB, free: 0.6211 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.5135, allocations: 0.8956 MB / 460 MB, free: 15.7 MB / 347.1 MB Notification: Performance of simCode: alias equations: time 0.0003126/0.5138, allocations: 72.84 kB / 460 MB, free: 15.62 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.5139, allocations: 50.23 kB / 460.1 MB, free: 15.57 MB / 347.1 MB Notification: Performance of SimCode: time 2.5e-07/0.5139, allocations: 0 / 460.1 MB, free: 15.57 MB / 347.1 MB Notification: Performance of Templates: time 0.01908/0.533, allocations: 11.19 MB / 471.3 MB, free: 4.453 MB / 347.1 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)