Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 191.8 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 55.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.335, allocations: 46.63 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003725/0.3388, allocations: 2.8 MB / 327.6 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.3404, allocations: 0.8535 MB / 328.5 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.3406, allocations: 3.656 kB / 328.5 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.3409, allocations: 69.34 kB / 328.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002908/0.3412, allocations: 115.6 kB / 328.7 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.3415, allocations: 83.58 kB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005315/0.342, allocations: 430.2 kB / 329.2 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.3422, allocations: 99.56 kB / 329.3 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.3424, allocations: 161.8 kB / 329.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.3427, allocations: 174.8 kB / 329.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.407e-05/0.3427, allocations: 34.03 kB / 329.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.207e-05/0.3428, allocations: 34.47 kB / 329.7 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.63e-05/0.3429, allocations: 77.02 kB / 329.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002216/0.3432, allocations: 190 kB / 329.9 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004701/0.3436, allocations: 445.1 kB / 330.4 MB, free: 13.79 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3436, allocations: 3.938 kB / 330.4 MB, free: 13.78 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3437, allocations: 1.094 kB / 330.4 MB, free: 13.78 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.3437, allocations: 0 / 330.4 MB, free: 13.78 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001296/0.345, allocations: 0.6763 MB / 331 MB, free: 13.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/0.345, allocations: 17.8 kB / 331.1 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.3452, allocations: 43 kB / 331.1 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.3456, allocations: 302.5 kB / 331.4 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.3458, allocations: 47.94 kB / 331.5 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.999e-05/0.3459, allocations: 23 kB / 331.5 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006798/0.3466, allocations: 319.2 kB / 331.8 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.3466, allocations: 0 / 331.8 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.3466, allocations: 12.34 kB / 331.8 MB, free: 12.55 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.3467, allocations: 4.406 kB / 331.8 MB, free: 12.55 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004631/0.3471, allocations: 208.7 kB / 332 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.3487, allocations: 0.802 MB / 332.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.3493, allocations: 275.4 kB / 333.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.3496, allocations: 116.8 kB / 333.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.114e-05/0.3496, allocations: 7.938 kB / 333.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.3497, allocations: 38.66 kB / 333.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.353e-06/0.3497, allocations: 3.938 kB / 333.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001185/0.3508, allocations: 483.9 kB / 333.7 MB, free: 10.98 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002221/0.3511, allocations: 316.4 kB / 334 MB, free: 10.59 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003662/0.3515, allocations: 279 kB / 334.3 MB, free: 10.31 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.377e-05/0.3515, allocations: 33.7 kB / 334.3 MB, free: 10.27 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.3517, allocations: 164.8 kB / 334.5 MB, free: 10.1 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.3518, allocations: 110.4 kB / 334.6 MB, free: 9.992 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.3519, allocations: 69.69 kB / 334.7 MB, free: 9.918 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002282/0.3522, allocations: 334.8 kB / 335 MB, free: 9.582 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3524, allocations: 95.95 kB / 335.1 MB, free: 9.488 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003288/0.3528, allocations: 220.3 kB / 335.3 MB, free: 9.23 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004992/0.3533, allocations: 270.6 kB / 335.6 MB, free: 8.949 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3533, allocations: 4 kB / 335.6 MB, free: 8.945 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006819/0.354, allocations: 360.8 kB / 335.9 MB, free: 8.578 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.354, allocations: 29.7 kB / 335.9 MB, free: 8.543 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3541, allocations: 0 / 335.9 MB, free: 8.543 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001822/0.3542, allocations: 44.78 kB / 336 MB, free: 8.496 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009687/0.3552, allocations: 159.9 kB / 336.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003721/0.3589, allocations: 3.232 MB / 339.4 MB, free: 4.832 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/0.3593, allocations: 35.77 kB / 339.4 MB, free: 4.797 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.954e-05/0.3593, allocations: 12 kB / 339.4 MB, free: 4.785 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001971/0.3595, allocations: 153.7 kB / 339.6 MB, free: 4.625 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.999e-05/0.3596, allocations: 35.62 kB / 339.6 MB, free: 4.59 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.195e-05/0.3597, allocations: 39.08 kB / 339.7 MB, free: 4.551 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3597, allocations: 0 / 339.7 MB, free: 4.551 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3597, allocations: 96 / 339.7 MB, free: 4.551 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006634/0.3604, allocations: 0.662 MB / 340.3 MB, free: 3.781 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.3609, allocations: 389.2 kB / 340.7 MB, free: 3.352 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3609, allocations: 0 / 340.7 MB, free: 3.352 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.3622, allocations: 207.7 kB / 340.9 MB, free: 3.148 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.076e-05/0.3623, allocations: 24.84 kB / 340.9 MB, free: 3.121 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.3623, allocations: 8 kB / 340.9 MB, free: 3.113 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003464/0.3658, allocations: 3.041 MB / 344 MB, free: 15.79 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3658, allocations: 3.938 kB / 344 MB, free: 15.79 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008888/0.3667, allocations: 0.5153 MB / 344.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.3669, allocations: 136.7 kB / 344.6 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.037e-05/0.367, allocations: 8 kB / 344.6 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.3672, allocations: 19.98 kB / 344.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.3673, allocations: 20.2 kB / 344.7 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.3674, allocations: 8 kB / 344.7 MB, free: 15.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002052/0.3676, allocations: 198 kB / 344.9 MB, free: 14.85 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3676, allocations: 4 kB / 344.9 MB, free: 14.85 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004577/0.368, allocations: 107.9 kB / 345 MB, free: 14.74 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001709/0.3682, allocations: 115.2 kB / 345.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.3698, allocations: 0.5447 MB / 345.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3698, allocations: 4 kB / 345.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.3712, allocations: 402.8 kB / 346 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006368/0.3719, allocations: 91.3 kB / 346.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.3737, allocations: 0.9663 MB / 347.1 MB, free: 12.56 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.3741, allocations: 0.7801 MB / 347.9 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001753/0.3743, allocations: 34.95 kB / 347.9 MB, free: 11.72 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.546e-05/0.3744, allocations: 27.44 kB / 347.9 MB, free: 11.7 MB / 286.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3744, allocations: 0 / 347.9 MB, free: 11.7 MB / 286.1 MB Notification: Performance of Templates: time 0.0118/0.3862, allocations: 6.108 MB / 354 MB, free: 5.582 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)