Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0011/0.0011, allocations: 184 kB / 8.354 MB, free: 0.7305 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.548/1.548, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001707/0.001707, allocations: 120.3 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.936e-05/1.939e-05, allocations: 4 kB / 298.1 MB, free: 35.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08429/0.08433, allocations: 44.49 MB / 342.6 MB, free: 7.004 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3353/0.4197, allocations: 76.52 MB / 419.1 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.42, allocations: 68.19 kB / 419.1 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.4585, allocations: 15.53 MB / 434.7 MB, free: 5.656 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4586, allocations: 3.938 kB / 434.7 MB, free: 5.652 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001045/0.4587, allocations: 19.5 kB / 434.7 MB, free: 5.648 MB / 298.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.002656/0.4613, allocations: 1.039 MB / 435.7 MB, free: 4.898 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.4614, allocations: 7.719 kB / 435.7 MB, free: 4.898 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006317/0.4621, allocations: 104.6 kB / 435.8 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.4635, allocations: 0.5191 MB / 436.4 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.4637, allocations: 129.1 kB / 436.5 MB, free: 4.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.4639, allocations: 34.75 kB / 436.5 MB, free: 4.406 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009623/0.4649, allocations: 470.5 kB / 437 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.4659, allocations: 0.6867 MB / 437.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.4659, allocations: 0 / 437.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.783e-05/0.466, allocations: 11.8 kB / 437.7 MB, free: 3.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.466, allocations: 11.56 kB / 437.7 MB, free: 3.984 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003501/0.4695, allocations: 1.939 MB / 439.6 MB, free: 3.031 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.4706, allocations: 0.8853 MB / 440.5 MB, free: 2.586 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003733/0.471, allocations: 297.1 kB / 440.8 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.672e-05/0.4711, allocations: 27.14 kB / 440.8 MB, free: 2.562 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.4711, allocations: 45.62 kB / 440.9 MB, free: 2.523 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 4.779e-06/0.4711, allocations: 0 / 440.9 MB, free: 2.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=74): time 0.002007/0.4731, allocations: 0.8282 MB / 441.7 MB, free: 2.289 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/0.4734, allocations: 0.823 MB / 442.5 MB, free: 1.285 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006515/0.474, allocations: 481 kB / 443 MB, free: 1.137 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.479e-05/0.4741, allocations: 29.55 kB / 443 MB, free: 1.105 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.4743, allocations: 316.9 kB / 443.3 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.4746, allocations: 242.3 kB / 443.6 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.77e-05/0.4746, allocations: 3.938 kB / 443.6 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4748, allocations: 381.1 kB / 444 MB, free: 436 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003158/0.4751, allocations: 205 kB / 444.2 MB, free: 432 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004868/0.4756, allocations: 465.5 kB / 444.6 MB, free: 148 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000384/0.476, allocations: 247.6 kB / 444.9 MB, free: 104 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.476, allocations: 0 / 444.9 MB, free: 104 kB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002046/0.4781, allocations: 0.8907 MB / 445.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.022e-05/0.4782, allocations: 84.58 kB / 445.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4782, allocations: 0 / 445.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006221/0.4788, allocations: 209.7 kB / 446 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006167/0.4795, allocations: 146.9 kB / 446.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006541/0.486, allocations: 6.024 MB / 452.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000999/0.4871, allocations: 93.59 kB / 452.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.4872, allocations: 30.8 kB / 452.3 MB, free: 10.41 MB / 314.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 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.0004401/0.4877, allocations: 139.4 kB / 452.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002991/0.488, allocations: 81.23 kB / 452.5 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002531/0.4883, allocations: 82.08 kB / 452.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.4883, allocations: 7.531 kB / 452.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.4883, allocations: 0 / 452.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002003/0.4903, allocations: 1.128 MB / 453.7 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.4938, allocations: 1.723 MB / 455.5 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4938, allocations: 0 / 455.5 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007193/0.4945, allocations: 146.9 kB / 455.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004153/0.495, allocations: 168.9 kB / 455.8 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.495, allocations: 3.938 kB / 455.8 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005542/0.5006, allocations: 4.631 MB / 460.4 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.5006, allocations: 0 / 460.4 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/0.5035, allocations: 1.221 MB / 461.6 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003517/0.5038, allocations: 165.9 kB / 461.8 MB, free: 2.859 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002265/0.5041, allocations: 11.94 kB / 461.8 MB, free: 2.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006801/0.5048, allocations: 43.97 kB / 461.9 MB, free: 2.805 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.505, allocations: 65.23 kB / 461.9 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.5051, allocations: 16.56 kB / 461.9 MB, free: 2.734 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008009/0.5059, allocations: 372.8 kB / 462.3 MB, free: 2.473 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5059, allocations: 0 / 462.3 MB, free: 2.473 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001355/0.5072, allocations: 255.6 kB / 462.5 MB, free: 2.223 MB / 314.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.0002867/0.5075, allocations: 124.2 kB / 462.7 MB, free: 2.094 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.5097, allocations: 1.168 MB / 463.8 MB, free: 1.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.5097, allocations: 0 / 463.8 MB, free: 1.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.5109, allocations: 0.7016 MB / 464.5 MB, free: 436 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.5121, allocations: 184.3 kB / 464.7 MB, free: 256 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002744/0.5149, allocations: 1.191 MB / 465.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006795/0.5156, allocations: 0.9481 MB / 466.9 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005316/0.5161, allocations: 81.94 kB / 466.9 MB, free: 13.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.5163, allocations: 59.42 kB / 467 MB, free: 13.91 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5163, allocations: 0 / 467 MB, free: 13.91 MB / 330.7 MB Notification: Performance of Templates: time 0.02827/0.5446, allocations: 14.28 MB / 481.3 MB, free: 15.63 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)