Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.005635/0.005635, allocations: 176 kB / 7.452 MB, free: 2.504 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.522/1.522, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.001893/0.001893, allocations: 120.9 kB / 217.7 MB, free: 8.152 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.566e-06/8.676e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.104, allocations: 38.77 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.931/1.035, allocations: 311.1 MB / 0.5973 GB, free: 125.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/1.035, allocations: 88.72 kB / 0.5974 GB, free: 125.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.499/1.534, allocations: 135.6 MB / 0.7298 GB, free: 66.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.538e-05/1.535, allocations: 22.09 kB / 0.7298 GB, free: 66.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003097/1.538, allocations: 1.029 MB / 0.7308 GB, free: 66.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/1.538, allocations: 7.25 kB / 0.7308 GB, free: 66.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003664/1.538, allocations: 88.25 kB / 0.7309 GB, free: 66.01 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/1.539, allocations: 0.5849 MB / 0.7314 GB, free: 65.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/1.539, allocations: 17.81 kB / 0.7315 GB, free: 65.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.645e-05/1.54, allocations: 30.44 kB / 0.7315 GB, free: 65.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009814/1.54, allocations: 0.6208 MB / 0.7321 GB, free: 65.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009235/1.541, allocations: 0.6702 MB / 0.7327 GB, free: 65.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/1.541, allocations: 3.906 kB / 0.7327 GB, free: 65.65 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.14e-05/1.542, allocations: 0 / 0.7327 GB, free: 65.65 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-05/1.542, allocations: 46.14 kB / 0.7328 GB, free: 65.65 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003864/1.545, allocations: 2.743 MB / 0.7355 GB, free: 64.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004823/1.546, allocations: 368.6 kB / 0.7358 GB, free: 64.31 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/1.546, allocations: 245.5 kB / 0.7361 GB, free: 64.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003501/1.547, allocations: 338.6 kB / 0.7364 GB, free: 63.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/1.547, allocations: 41.28 kB / 0.7364 GB, free: 63.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 2.215e-06/1.547, allocations: 0 / 0.7364 GB, free: 63.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.00571/1.552, allocations: 1.868 MB / 0.7382 GB, free: 63.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/1.552, allocations: 84.52 kB / 0.7383 GB, free: 63.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005731/1.553, allocations: 449 kB / 0.7388 GB, free: 63.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.487e-05/1.553, allocations: 36.23 kB / 0.7388 GB, free: 63.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/1.553, allocations: 252.9 kB / 0.739 GB, free: 63.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/1.553, allocations: 203.1 kB / 0.7392 GB, free: 63.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/1.554, allocations: 0 / 0.7392 GB, free: 63.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/1.554, allocations: 377.6 kB / 0.7396 GB, free: 62.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/1.554, allocations: 276.1 kB / 0.7398 GB, free: 62.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004465/1.554, allocations: 440.2 kB / 0.7403 GB, free: 62.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003888/1.558, allocations: 0.8885 MB / 0.7411 GB, free: 62.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/1.558, allocations: 2.562 kB / 0.7411 GB, free: 62.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005248/1.564, allocations: 1.438 MB / 0.7425 GB, free: 62.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005536/1.564, allocations: 1.739 MB / 0.7442 GB, free: 60.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/1.564, allocations: 3.938 kB / 0.7442 GB, free: 60.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005788/1.565, allocations: 164.7 kB / 0.7444 GB, free: 60.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/1.566, allocations: 155.5 kB / 0.7445 GB, free: 60.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/1.567, allocations: 0.9826 MB / 0.7455 GB, free: 60.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008142/1.568, allocations: 40.39 kB / 0.7455 GB, free: 60.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.821e-05/1.568, allocations: 33.95 kB / 0.7456 GB, free: 60.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/1.568, allocations: 3.844 kB / 0.7456 GB, free: 60.09 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004509/1.573, allocations: 1.268 MB / 0.7468 GB, free: 60.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/1.573, allocations: 3.781 kB / 0.7468 GB, free: 60.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003992/1.573, allocations: 105.9 kB / 0.7469 GB, free: 60.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005844/1.574, allocations: 158.4 kB / 0.7471 GB, free: 60.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/1.575, allocations: 0.824 MB / 0.7479 GB, free: 59.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000672/1.576, allocations: 35.14 kB / 0.7479 GB, free: 59.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.49e-05/1.576, allocations: 32.98 kB / 0.7479 GB, free: 59.54 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002846/1.576, allocations: 131.3 kB / 0.7481 GB, free: 59.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/1.576, allocations: 70.75 kB / 0.7481 GB, free: 59.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/1.578, allocations: 0.849 MB / 0.749 GB, free: 59.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/1.578, allocations: 7 kB / 0.749 GB, free: 59.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/1.578, allocations: 0 / 0.749 GB, free: 59.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/1.578, allocations: 3.797 kB / 0.749 GB, free: 59.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003274/1.582, allocations: 1.587 MB / 0.7505 GB, free: 59.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/1.582, allocations: 3.906 kB / 0.7505 GB, free: 59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005299/1.582, allocations: 112.5 kB / 0.7506 GB, free: 59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005302/1.583, allocations: 167 kB / 0.7508 GB, free: 58.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-05/1.583, allocations: 13.78 kB / 0.7508 GB, free: 58.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/1.584, allocations: 0.8916 MB / 0.7517 GB, free: 58.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.584, allocations: 0 / 0.7517 GB, free: 58.46 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002458/1.587, allocations: 1.289 MB / 0.7529 GB, free: 58.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003078/1.587, allocations: 141.5 kB / 0.7531 GB, free: 58.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/1.587, allocations: 7.625 kB / 0.7531 GB, free: 58.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005876/1.588, allocations: 33.78 kB / 0.7531 GB, free: 58.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/1.588, allocations: 59.7 kB / 0.7532 GB, free: 58.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-05/1.588, allocations: 24.56 kB / 0.7532 GB, free: 58.08 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004982/1.588, allocations: 345.5 kB / 0.7535 GB, free: 58 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002289/1.591, allocations: 0.5434 MB / 0.7541 GB, free: 57.92 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001991/1.593, allocations: 0.5899 MB / 0.7546 GB, free: 57.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00236/1.595, allocations: 1.094 MB / 0.7557 GB, free: 57.71 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.595, allocations: 3.562 kB / 0.7557 GB, free: 57.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006346/1.596, allocations: 364.5 kB / 0.7561 GB, free: 57.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/1.598, allocations: 287.3 kB / 0.7563 GB, free: 57.69 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/1.601, allocations: 1.186 MB / 0.7575 GB, free: 57.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009961/1.602, allocations: 1.054 MB / 0.7585 GB, free: 56.7 MB / 346.7 MB Notification: Performance of SimCode: time 1.613e-06/1.602, allocations: 0 / 0.7585 GB, free: 56.7 MB / 346.7 MB Notification: Performance of Templates: time 0.04259/1.644, allocations: 21.4 MB / 0.7794 GB, free: 55.68 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)