Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000925/0.0009251, allocations: 182.4 kB / 8.137 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.121/1.121, allocations: 221.4 MB / 229.9 MB, free: 3.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009671/0.000967, allocations: 101.1 kB / 280.8 MB, free: 1.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09857/0.09958, allocations: 55.83 MB / 336.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.3067, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5808/0.8875, allocations: 321.5 MB / 0.6919 GB, free: 131 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.8877, allocations: 92.64 kB / 0.692 GB, free: 131 MB / 442.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.428/1.316, allocations: 141.1 MB / 0.8298 GB, free: 98.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/1.316, allocations: 11.5 kB / 0.8298 GB, free: 98.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/1.316, allocations: 85.81 kB / 0.8299 GB, free: 98.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009796/1.317, allocations: 0.5852 MB / 0.8305 GB, free: 97.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/1.317, allocations: 19.25 kB / 0.8305 GB, free: 97.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.932e-05/1.317, allocations: 34.31 kB / 0.8305 GB, free: 97.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00089/1.318, allocations: 0.6202 MB / 0.8311 GB, free: 97.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008851/1.319, allocations: 0.6676 MB / 0.8318 GB, free: 97.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/1.319, allocations: 10.45 kB / 0.8318 GB, free: 97.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.909e-05/1.319, allocations: 0 / 0.8318 GB, free: 97.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.24e-05/1.319, allocations: 41.92 kB / 0.8318 GB, free: 97.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003345/1.322, allocations: 2.734 MB / 0.8345 GB, free: 96.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/1.323, allocations: 372.6 kB / 0.8348 GB, free: 96.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002716/1.323, allocations: 250.6 kB / 0.8351 GB, free: 96.44 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002035/1.323, allocations: 334.1 kB / 0.8354 GB, free: 96.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/1.323, allocations: 45.53 kB / 0.8354 GB, free: 96.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 2.154e-06/1.323, allocations: 9.828 kB / 0.8355 GB, free: 96.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004961/1.328, allocations: 1.861 MB / 0.8373 GB, free: 95.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/1.328, allocations: 85.05 kB / 0.8374 GB, free: 95.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004598/1.329, allocations: 453.2 kB / 0.8378 GB, free: 95.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/1.329, allocations: 25.7 kB / 0.8378 GB, free: 95.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/1.329, allocations: 258.3 kB / 0.8381 GB, free: 95.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/1.329, allocations: 199.8 kB / 0.8383 GB, free: 95.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/1.329, allocations: 0 / 0.8383 GB, free: 95.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.007e-05/1.329, allocations: 381.2 kB / 0.8386 GB, free: 94.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003475/1.33, allocations: 272.8 kB / 0.8389 GB, free: 94.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003982/1.33, allocations: 434.5 kB / 0.8393 GB, free: 94.67 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/1.332, allocations: 0.5598 MB / 0.8398 GB, free: 94.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.332, allocations: 0 / 0.8398 GB, free: 94.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0023/1.334, allocations: 1.103 MB / 0.8409 GB, free: 94.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002646/1.334, allocations: 1.736 MB / 0.8426 GB, free: 92.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/1.334, allocations: 3.938 kB / 0.8426 GB, free: 92.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005021/1.335, allocations: 178.5 kB / 0.8428 GB, free: 92.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000569/1.335, allocations: 151.1 kB / 0.8429 GB, free: 92.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/1.337, allocations: 0.9733 MB / 0.8439 GB, free: 92.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000592/1.338, allocations: 39.16 kB / 0.8439 GB, free: 92.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-05/1.338, allocations: 35.77 kB / 0.8439 GB, free: 92.24 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.915e-06/1.338, allocations: 6.844 kB / 0.844 GB, free: 92.24 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002009/1.34, allocations: 0.928 MB / 0.8449 GB, free: 92.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/1.34, allocations: 3.938 kB / 0.8449 GB, free: 92.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003582/1.34, allocations: 104.9 kB / 0.845 GB, free: 92.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005576/1.341, allocations: 159.3 kB / 0.8451 GB, free: 92.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/1.342, allocations: 0.8298 MB / 0.8459 GB, free: 91.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00054/1.342, allocations: 33.42 kB / 0.846 GB, free: 91.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/1.342, allocations: 33.03 kB / 0.846 GB, free: 91.69 MB / 442.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.0001892/1.342, allocations: 129.6 kB / 0.8461 GB, free: 91.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/1.343, allocations: 65.59 kB / 0.8462 GB, free: 91.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/1.344, allocations: 0.8582 MB / 0.847 GB, free: 91.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/1.344, allocations: 7.188 kB / 0.847 GB, free: 91.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/1.344, allocations: 0 / 0.847 GB, free: 91.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/1.344, allocations: 3.656 kB / 0.847 GB, free: 91.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002659/1.347, allocations: 1.594 MB / 0.8486 GB, free: 91.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.347, allocations: 3.781 kB / 0.8486 GB, free: 91.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/1.348, allocations: 112.2 kB / 0.8487 GB, free: 91.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004772/1.348, allocations: 170.8 kB / 0.8489 GB, free: 91.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/1.348, allocations: 7.766 kB / 0.8489 GB, free: 91.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/1.349, allocations: 0.8878 MB / 0.8497 GB, free: 90.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/1.349, allocations: 3.5 kB / 0.8497 GB, free: 90.63 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002043/1.351, allocations: 1.279 MB / 0.851 GB, free: 90.39 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002498/1.354, allocations: 2.055 MB / 0.853 GB, free: 89.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/1.354, allocations: 148.8 kB / 0.8531 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/1.354, allocations: 5.531 kB / 0.8531 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005167/1.355, allocations: 35.41 kB / 0.8532 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-05/1.355, allocations: 46.11 kB / 0.8532 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-05/1.355, allocations: 25.8 kB / 0.8532 GB, free: 89.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003823/1.355, allocations: 342.9 kB / 0.8536 GB, free: 89.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003025/1.358, allocations: 0.6374 MB / 0.8542 GB, free: 89.48 MB / 442.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.001428/1.36, allocations: 0.5883 MB / 0.8548 GB, free: 89.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001859/1.362, allocations: 1.1 MB / 0.8558 GB, free: 89.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.362, allocations: 3.938 kB / 0.8558 GB, free: 89.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005279/1.362, allocations: 360.3 kB / 0.8562 GB, free: 89.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/1.364, allocations: 283 kB / 0.8565 GB, free: 89.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/1.366, allocations: 1.192 MB / 0.8576 GB, free: 88.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006515/1.366, allocations: 1.068 MB / 0.8587 GB, free: 88.28 MB / 442.7 MB Notification: Performance of SimCode: time 6.92e-07/1.366, allocations: 0 / 0.8587 GB, free: 88.28 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)