Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [: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.3+maint.om/package.mo): time 0.0009231/0.0009231, allocations: 176.6 kB / 8.475 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.104/1.104, allocations: 205.2 MB / 214.1 MB, free: 5.102 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000899/0.0008989, allocations: 78.84 kB / 262.1 MB, free: 5.156 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1678/0.1687, allocations: 52.97 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07089/0.2396, allocations: 47.58 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5391/0.7788, allocations: 320.9 MB / 0.6676 GB, free: 70.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.7791, allocations: 86.64 kB / 0.6676 GB, free: 70.38 MB / 426.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.4209/1.2, allocations: 138.1 MB / 0.8025 GB, free: 111.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/1.2, allocations: 8 kB / 0.8025 GB, free: 111.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004756/1.201, allocations: 91.06 kB / 0.8026 GB, free: 111.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/1.202, allocations: 0.5869 MB / 0.8032 GB, free: 110.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/1.202, allocations: 23.89 kB / 0.8032 GB, free: 110.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/1.202, allocations: 28 kB / 0.8033 GB, free: 110.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009642/1.203, allocations: 0.6189 MB / 0.8039 GB, free: 110.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009242/1.204, allocations: 0.6699 MB / 0.8045 GB, free: 109.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/1.204, allocations: 4 kB / 0.8045 GB, free: 109.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.748e-05/1.204, allocations: 0 / 0.8045 GB, free: 109.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-05/1.204, allocations: 44.97 kB / 0.8046 GB, free: 109.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003586/1.208, allocations: 2.745 MB / 0.8072 GB, free: 106.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/1.208, allocations: 367 kB / 0.8076 GB, free: 106.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002754/1.208, allocations: 242.1 kB / 0.8078 GB, free: 105.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002178/1.209, allocations: 344.6 kB / 0.8082 GB, free: 105.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/1.209, allocations: 46.94 kB / 0.8082 GB, free: 105.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 1.823e-06/1.209, allocations: 0 / 0.8082 GB, free: 105.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.00513/1.214, allocations: 1.859 MB / 0.81 GB, free: 103.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/1.214, allocations: 85.61 kB / 0.8101 GB, free: 103.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/1.214, allocations: 450.1 kB / 0.8105 GB, free: 102.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/1.214, allocations: 33.7 kB / 0.8106 GB, free: 102.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/1.214, allocations: 256.2 kB / 0.8108 GB, free: 102.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/1.215, allocations: 205 kB / 0.811 GB, free: 102.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.365e-05/1.215, allocations: 0 / 0.811 GB, free: 102.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.884e-05/1.215, allocations: 370.8 kB / 0.8113 GB, free: 102 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/1.215, allocations: 277.5 kB / 0.8116 GB, free: 101.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/1.215, allocations: 433.6 kB / 0.812 GB, free: 101.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003744/1.219, allocations: 0.9005 MB / 0.8129 GB, free: 100.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/1.219, allocations: 0 / 0.8129 GB, free: 100.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004409/1.224, allocations: 1.436 MB / 0.8143 GB, free: 98.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003293/1.224, allocations: 1.741 MB / 0.816 GB, free: 97.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/1.224, allocations: 8 kB / 0.816 GB, free: 97.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004901/1.225, allocations: 168.7 kB / 0.8162 GB, free: 96.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005868/1.225, allocations: 155.6 kB / 0.8163 GB, free: 96.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/1.227, allocations: 0.9814 MB / 0.8173 GB, free: 95.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006119/1.227, allocations: 32.05 kB / 0.8173 GB, free: 95.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/1.227, allocations: 35.98 kB / 0.8173 GB, free: 95.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.374e-06/1.227, allocations: 4 kB / 0.8174 GB, free: 95.63 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004179/1.232, allocations: 1.264 MB / 0.8186 GB, free: 94.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/1.232, allocations: 4 kB / 0.8186 GB, free: 94.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003531/1.232, allocations: 113.3 kB / 0.8187 GB, free: 94.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005694/1.233, allocations: 160.5 kB / 0.8189 GB, free: 94.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/1.234, allocations: 0.8215 MB / 0.8197 GB, free: 93.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005707/1.234, allocations: 29.92 kB / 0.8197 GB, free: 93.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/1.234, allocations: 36.05 kB / 0.8197 GB, free: 93.18 MB / 426.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.0001748/1.234, allocations: 128.6 kB / 0.8198 GB, free: 93.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/1.235, allocations: 63.25 kB / 0.8199 GB, free: 92.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/1.236, allocations: 0.8589 MB / 0.8207 GB, free: 92.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/1.236, allocations: 4 kB / 0.8207 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/1.236, allocations: 0 / 0.8207 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/1.236, allocations: 3.984 kB / 0.8207 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003062/1.24, allocations: 1.603 MB / 0.8223 GB, free: 90.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.24, allocations: 0 / 0.8223 GB, free: 90.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000501/1.24, allocations: 111.9 kB / 0.8224 GB, free: 90.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004688/1.241, allocations: 172.7 kB / 0.8226 GB, free: 90.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.837e-05/1.241, allocations: 4 kB / 0.8226 GB, free: 90.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/1.242, allocations: 0.8918 MB / 0.8235 GB, free: 89.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/1.242, allocations: 64 / 0.8235 GB, free: 89.27 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002065/1.244, allocations: 1.285 MB / 0.8247 GB, free: 87.95 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002423/1.246, allocations: 2.051 MB / 0.8267 GB, free: 85.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/1.246, allocations: 144.2 kB / 0.8269 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/1.247, allocations: 7.984 kB / 0.8269 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004861/1.247, allocations: 27.98 kB / 0.8269 GB, free: 85.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/1.247, allocations: 52.75 kB / 0.8269 GB, free: 85.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.015e-05/1.247, allocations: 23.98 kB / 0.827 GB, free: 85.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003317/1.248, allocations: 346.9 kB / 0.8273 GB, free: 85.26 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00288/1.25, allocations: 0.6323 MB / 0.8279 GB, free: 84.62 MB / 426.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.001299/1.252, allocations: 0.5902 MB / 0.8285 GB, free: 84.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001675/1.253, allocations: 1.1 MB / 0.8296 GB, free: 82.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.253, allocations: 0 / 0.8296 GB, free: 82.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004924/1.254, allocations: 367.8 kB / 0.8299 GB, free: 82.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/1.255, allocations: 285.7 kB / 0.8302 GB, free: 82.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/1.257, allocations: 1.196 MB / 0.8313 GB, free: 81.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000561/1.258, allocations: 1.068 MB / 0.8324 GB, free: 79.99 MB / 426.7 MB Notification: Performance of SimCode: time 2.81e-07/1.258, allocations: 0 / 0.8324 GB, free: 79.99 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)