Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8396/0.8396, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00191/0.00191, allocations: 139.4 kB / 151.8 MB, free: 4.992 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002953, allocations: 12 kB / 184.9 MB, free: 3.922 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1498, allocations: 25.15 MB / 210 MB, free: 29.75 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.515/0.6649, allocations: 236.5 MB / 446.5 MB, free: 24.48 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.6652, allocations: 72.08 kB / 446.6 MB, free: 24.44 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6027/1.268, allocations: 122.8 MB / 0.556 GB, free: 34.7 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.268, allocations: 0 / 0.556 GB, free: 34.7 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.955e-05/1.268, allocations: 25.45 kB / 0.556 GB, free: 34.7 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002568/1.271, allocations: 1.107 MB / 0.5571 GB, free: 34.16 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/1.271, allocations: 14.08 kB / 0.5571 GB, free: 34.16 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/1.271, allocations: 82.69 kB / 0.5572 GB, free: 34.12 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/1.272, allocations: 0.5851 MB / 0.5578 GB, free: 33.89 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/1.272, allocations: 110.6 kB / 0.5579 GB, free: 33.83 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.662e-05/1.272, allocations: 53.8 kB / 0.5579 GB, free: 33.82 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/1.274, allocations: 0.8611 MB / 0.5588 GB, free: 33.72 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/1.274, allocations: 0 / 0.5588 GB, free: 33.72 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.417e-05/1.274, allocations: 22.3 kB / 0.5588 GB, free: 33.72 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.912e-05/1.274, allocations: 52.95 kB / 0.5588 GB, free: 33.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/1.275, allocations: 0.7627 MB / 0.5596 GB, free: 33.71 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004169/1.279, allocations: 3.104 MB / 0.5626 GB, free: 32.5 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/1.28, allocations: 0.6398 MB / 0.5633 GB, free: 32.46 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002223/1.282, allocations: 1.899 MB / 0.5651 GB, free: 31.41 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/1.283, allocations: 42.22 kB / 0.5651 GB, free: 31.37 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 1.984e-06/1.283, allocations: 3.906 kB / 0.5651 GB, free: 31.37 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.006163/1.289, allocations: 2.87 MB / 0.568 GB, free: 30.87 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/1.289, allocations: 89.12 kB / 0.568 GB, free: 30.78 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008531/1.29, allocations: 0.5434 MB / 0.5686 GB, free: 30.65 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.129e-05/1.29, allocations: 43.92 kB / 0.5686 GB, free: 30.62 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/1.29, allocations: 314.6 kB / 0.5689 GB, free: 30.48 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/1.29, allocations: 213.8 kB / 0.5691 GB, free: 30.35 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/1.29, allocations: 13.81 kB / 0.5691 GB, free: 30.35 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/1.29, allocations: 378 kB / 0.5695 GB, free: 30.04 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006247/1.291, allocations: 345.1 kB / 0.5698 GB, free: 30.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007125/1.292, allocations: 496.6 kB / 0.5703 GB, free: 29.89 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007184/1.292, allocations: 399 kB / 0.5707 GB, free: 29.88 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.292, allocations: 5.328 kB / 0.5707 GB, free: 29.88 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00218/1.295, allocations: 1.141 MB / 0.5718 GB, free: 29.79 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/1.295, allocations: 6.812 kB / 0.5718 GB, free: 29.79 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/1.295, allocations: 4.344 kB / 0.5718 GB, free: 29.79 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/1.296, allocations: 481.4 kB / 0.5723 GB, free: 29.78 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006131/1.297, allocations: 144.6 kB / 0.5724 GB, free: 29.78 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/1.298, allocations: 1.091 MB / 0.5735 GB, free: 29.25 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000757/1.299, allocations: 56.44 kB / 0.5735 GB, free: 29.25 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.072e-05/1.299, allocations: 30.06 kB / 0.5735 GB, free: 29.25 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = max(0.0, 0.0) start = max(tank2.level_start, 1e-15) unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = max(0.0, 0.0) start = max(tank1.level_start, 1e-15) unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank1.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (76): * Single equations (assignments): 75 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005504/1.3, allocations: 285.8 kB / 0.5738 GB, free: 29.13 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/1.3, allocations: 75.5 kB / 0.5739 GB, free: 29.09 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/1.302, allocations: 1.112 MB / 0.575 GB, free: 29.02 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/1.302, allocations: 6.75 kB / 0.575 GB, free: 29.02 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.302, allocations: 1.906 kB / 0.575 GB, free: 29.02 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/1.302, allocations: 3.844 kB / 0.575 GB, free: 29.02 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00343/1.305, allocations: 1.964 MB / 0.5769 GB, free: 28.69 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/1.305, allocations: 3.062 kB / 0.5769 GB, free: 28.69 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005685/1.306, allocations: 118.3 kB / 0.577 GB, free: 28.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/1.307, allocations: 496 kB / 0.5775 GB, free: 28.67 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.905e-05/1.307, allocations: 17.31 kB / 0.5775 GB, free: 28.67 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001506/1.309, allocations: 1.104 MB / 0.5786 GB, free: 28.15 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/1.309, allocations: 0 / 0.5786 GB, free: 28.15 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/1.312, allocations: 1.61 MB / 0.5802 GB, free: 27.95 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/1.312, allocations: 153.6 kB / 0.5803 GB, free: 27.81 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/1.312, allocations: 14.41 kB / 0.5803 GB, free: 27.81 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000605/1.313, allocations: 52.27 kB / 0.5804 GB, free: 27.81 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/1.313, allocations: 58.89 kB / 0.5804 GB, free: 27.81 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.198e-05/1.313, allocations: 23.44 kB / 0.5805 GB, free: 27.81 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0005823/1.313, allocations: 437.8 kB / 0.5809 GB, free: 27.72 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.313, allocations: 0 / 0.5809 GB, free: 27.72 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001545/1.315, allocations: 439 kB / 0.5813 GB, free: 27.65 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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 (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009726/1.316, allocations: 0.5178 MB / 0.5818 GB, free: 27.46 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002104/1.318, allocations: 0.9207 MB / 0.5827 GB, free: 27.45 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.318, allocations: 3.844 kB / 0.5827 GB, free: 27.45 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/1.319, allocations: 0.5196 MB / 0.5832 GB, free: 27.44 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/1.321, allocations: 367.3 kB / 0.5836 GB, free: 27.43 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003808/1.325, allocations: 1.98 MB / 0.5855 GB, free: 26.74 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/1.325, allocations: 0.9864 MB / 0.5864 GB, free: 26.04 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0007545/1.326, allocations: 207.6 kB / 0.5866 GB, free: 26.03 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/1.326, allocations: 67.41 kB / 0.5867 GB, free: 26.02 MB / 234.7 MB Notification: Performance of SimCode: time 1.102e-06/1.326, allocations: 2.375 kB / 0.5867 GB, free: 26.02 MB / 234.7 MB Notification: Performance of Templates: time 0.02906/1.355, allocations: 18.64 MB / 0.6049 GB, free: 24.91 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)