Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001028/0.001028, allocations: 204.1 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.132/1.132, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008256/0.0008258, allocations: 91.09 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09979/0.1006, allocations: 56.91 MB / 343.2 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08612/0.1868, allocations: 51.48 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5273/0.7141, allocations: 322.3 MB / 0.7002 GB, free: 34.93 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.7144, allocations: 90.12 kB / 0.7003 GB, free: 34.89 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.4335/1.148, allocations: 140.9 MB / 0.8379 GB, free: 72.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/1.148, allocations: 8 kB / 0.8379 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004441/1.148, allocations: 87.06 kB / 0.838 GB, free: 72.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/1.15, allocations: 0.5905 MB / 0.8386 GB, free: 71.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/1.15, allocations: 19.98 kB / 0.8386 GB, free: 71.76 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/1.15, allocations: 28 kB / 0.8387 GB, free: 71.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009912/1.151, allocations: 0.6189 MB / 0.8393 GB, free: 71.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009728/1.152, allocations: 0.6699 MB / 0.8399 GB, free: 70.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/1.152, allocations: 0 / 0.8399 GB, free: 70.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/1.152, allocations: 0 / 0.8399 GB, free: 70.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.413e-05/1.152, allocations: 48.97 kB / 0.84 GB, free: 70.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003539/1.155, allocations: 2.753 MB / 0.8426 GB, free: 67.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004363/1.156, allocations: 370.9 kB / 0.843 GB, free: 67.1 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/1.156, allocations: 242.1 kB / 0.8432 GB, free: 66.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001999/1.156, allocations: 343.7 kB / 0.8436 GB, free: 66.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/1.156, allocations: 39 kB / 0.8436 GB, free: 66.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 1.563e-06/1.156, allocations: 0 / 0.8436 GB, free: 66.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.005093/1.161, allocations: 1.867 MB / 0.8454 GB, free: 64.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.405e-05/1.162, allocations: 81.61 kB / 0.8455 GB, free: 64.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004295/1.162, allocations: 450.1 kB / 0.8459 GB, free: 63.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.114e-05/1.162, allocations: 33.7 kB / 0.846 GB, free: 63.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/1.162, allocations: 260.2 kB / 0.8462 GB, free: 63.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/1.162, allocations: 193.1 kB / 0.8464 GB, free: 63.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/1.162, allocations: 0 / 0.8464 GB, free: 63.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.341e-05/1.162, allocations: 374.8 kB / 0.8467 GB, free: 63.08 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/1.163, allocations: 281.4 kB / 0.847 GB, free: 62.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/1.163, allocations: 429.4 kB / 0.8474 GB, free: 62.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/1.165, allocations: 0.6079 MB / 0.848 GB, free: 61.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/1.165, allocations: 0 / 0.848 GB, free: 61.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002712/1.168, allocations: 1.16 MB / 0.8492 GB, free: 60.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002431/1.168, allocations: 1.741 MB / 0.8509 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.168, allocations: 4 kB / 0.8509 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004903/1.169, allocations: 172.6 kB / 0.851 GB, free: 58.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005875/1.169, allocations: 151.7 kB / 0.8512 GB, free: 58.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/1.171, allocations: 0.9776 MB / 0.8521 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005794/1.171, allocations: 35.98 kB / 0.8522 GB, free: 57.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-05/1.171, allocations: 35.98 kB / 0.8522 GB, free: 57.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/1.171, allocations: 0 / 0.8522 GB, free: 57.27 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002427/1.174, allocations: 0.9869 MB / 0.8532 GB, free: 56.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/1.174, allocations: 4 kB / 0.8532 GB, free: 56.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003742/1.174, allocations: 108.7 kB / 0.8533 GB, free: 56.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000579/1.175, allocations: 159.7 kB / 0.8534 GB, free: 56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/1.176, allocations: 0.828 MB / 0.8542 GB, free: 55.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/1.176, allocations: 32.03 kB / 0.8543 GB, free: 55.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-05/1.177, allocations: 35.98 kB / 0.8543 GB, free: 55.09 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.0001656/1.177, allocations: 125.4 kB / 0.8544 GB, free: 54.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/1.177, allocations: 71.23 kB / 0.8545 GB, free: 54.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/1.179, allocations: 0.8576 MB / 0.8553 GB, free: 54.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/1.179, allocations: 11.94 kB / 0.8553 GB, free: 54.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/1.179, allocations: 0 / 0.8553 GB, free: 54.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/1.179, allocations: 7.891 kB / 0.8553 GB, free: 54.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/1.182, allocations: 1.589 MB / 0.8569 GB, free: 52.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/1.182, allocations: 0 / 0.8569 GB, free: 52.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/1.182, allocations: 111.8 kB / 0.857 GB, free: 52.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004855/1.183, allocations: 160.8 kB / 0.8571 GB, free: 52.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.184e-05/1.183, allocations: 16.05 kB / 0.8572 GB, free: 52.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/1.184, allocations: 0.8957 MB / 0.858 GB, free: 51.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.184, allocations: 7.906 kB / 0.858 GB, free: 51.18 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002079/1.186, allocations: 1.28 MB / 0.8593 GB, free: 49.87 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002476/1.188, allocations: 2.051 MB / 0.8613 GB, free: 47.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/1.189, allocations: 144.2 kB / 0.8614 GB, free: 47.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/1.189, allocations: 4 kB / 0.8614 GB, free: 47.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004806/1.189, allocations: 31.91 kB / 0.8615 GB, free: 47.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.649e-05/1.189, allocations: 56.52 kB / 0.8615 GB, free: 47.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.743e-05/1.189, allocations: 27.89 kB / 0.8615 GB, free: 47.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003396/1.19, allocations: 346.9 kB / 0.8619 GB, free: 47.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002812/1.192, allocations: 0.6519 MB / 0.8625 GB, free: 46.51 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.001306/1.194, allocations: 0.5866 MB / 0.8631 GB, free: 45.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001745/1.196, allocations: 1.095 MB / 0.8642 GB, free: 44.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/1.196, allocations: 4 kB / 0.8642 GB, free: 44.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006574/1.196, allocations: 368.3 kB / 0.8645 GB, free: 44.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/1.197, allocations: 288.2 kB / 0.8648 GB, free: 44.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/1.199, allocations: 1.187 MB / 0.8659 GB, free: 43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005121/1.2, allocations: 1.061 MB / 0.867 GB, free: 41.91 MB / 442.7 MB Notification: Performance of SimCode: time 3.7e-07/1.2, allocations: 0 / 0.867 GB, free: 41.91 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)