Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",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.0009762/0.0009795, allocations: 198.6 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.107/1.107, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008825/0.0008826, allocations: 85.66 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09629/0.09719, allocations: 56.9 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.1805, allocations: 51.47 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5215/0.702, allocations: 326.9 MB / 0.7047 GB, free: 30.32 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.7023, allocations: 88.89 kB / 0.7047 GB, free: 30.28 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.4297/1.132, allocations: 146.5 MB / 0.8479 GB, free: 51.02 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/1.132, allocations: 15.98 kB / 0.8479 GB, free: 51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003778/1.132, allocations: 94.97 kB / 0.848 GB, free: 50.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/1.133, allocations: 0.6169 MB / 0.8486 GB, free: 50.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.297e-05/1.133, allocations: 84.31 kB / 0.8486 GB, free: 50.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.571e-05/1.134, allocations: 28 kB / 0.8487 GB, free: 50.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008147/1.134, allocations: 0.6111 MB / 0.8493 GB, free: 49.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008838/1.135, allocations: 0.7511 MB / 0.85 GB, free: 48.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/1.135, allocations: 4 kB / 0.85 GB, free: 48.72 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.425e-05/1.135, allocations: 4 kB / 0.85 GB, free: 48.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.72e-05/1.135, allocations: 44.97 kB / 0.85 GB, free: 48.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003716/1.139, allocations: 3.31 MB / 0.8533 GB, free: 45.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003828/1.14, allocations: 322.4 kB / 0.8536 GB, free: 44.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/1.14, allocations: 261.1 kB / 0.8538 GB, free: 44.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001455/1.141, allocations: 1.387 MB / 0.8552 GB, free: 43.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/1.142, allocations: 353.9 kB / 0.8555 GB, free: 42.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 1.453e-06/1.142, allocations: 3.938 kB / 0.8555 GB, free: 42.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.002588/1.144, allocations: 1.338 MB / 0.8568 GB, free: 41.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/1.144, allocations: 268.9 kB / 0.8571 GB, free: 41.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/1.145, allocations: 0.5385 MB / 0.8576 GB, free: 40.47 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.704e-05/1.145, allocations: 37.69 kB / 0.8577 GB, free: 40.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/1.145, allocations: 319.3 kB / 0.858 GB, free: 40.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.18e-05/1.145, allocations: 130.2 kB / 0.8581 GB, free: 39.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/1.145, allocations: 0 / 0.8581 GB, free: 39.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.831e-05/1.145, allocations: 386.7 kB / 0.8585 GB, free: 39.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003206/1.146, allocations: 249.3 kB / 0.8587 GB, free: 39.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003984/1.146, allocations: 0.4886 MB / 0.8592 GB, free: 38.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/1.147, allocations: 0.5134 MB / 0.8597 GB, free: 38.24 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.147, allocations: 4 kB / 0.8597 GB, free: 38.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002211/1.15, allocations: 1.023 MB / 0.8607 GB, free: 37.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003378/1.15, allocations: 2.441 MB / 0.8631 GB, free: 34.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.15, allocations: 8 kB / 0.8631 GB, free: 34.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/1.15, allocations: 112.8 kB / 0.8632 GB, free: 34.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/1.151, allocations: 131.8 kB / 0.8633 GB, free: 34.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005717/1.151, allocations: 0.7278 MB / 0.864 GB, free: 33.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005781/1.152, allocations: 35.95 kB / 0.864 GB, free: 33.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.82e-05/1.152, allocations: 36.12 kB / 0.8641 GB, free: 33.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.28e-06/1.152, allocations: 8 kB / 0.8641 GB, free: 33.5 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002107/1.154, allocations: 0.9088 MB / 0.865 GB, free: 32.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/1.154, allocations: 11.94 kB / 0.865 GB, free: 32.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003052/1.154, allocations: 109.3 kB / 0.8651 GB, free: 32.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004607/1.155, allocations: 135.8 kB / 0.8652 GB, free: 32.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003908/1.155, allocations: 0.6694 MB / 0.8659 GB, free: 31.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/1.156, allocations: 40.02 kB / 0.8659 GB, free: 31.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.857e-05/1.156, allocations: 36.09 kB / 0.8659 GB, free: 31.55 MB / 442.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" 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: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000211/1.156, allocations: 189.8 kB / 0.8661 GB, free: 31.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.587e-05/1.156, allocations: 71.16 kB / 0.8662 GB, free: 31.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/1.157, allocations: 0.6202 MB / 0.8668 GB, free: 30.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/1.157, allocations: 7.906 kB / 0.8668 GB, free: 30.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/1.157, allocations: 0 / 0.8668 GB, free: 30.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/1.157, allocations: 7.984 kB / 0.8668 GB, free: 30.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/1.159, allocations: 1.288 MB / 0.8681 GB, free: 29.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/1.159, allocations: 0 / 0.8681 GB, free: 29.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/1.16, allocations: 63.91 kB / 0.8681 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003168/1.16, allocations: 108.8 kB / 0.8682 GB, free: 29.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.866e-05/1.16, allocations: 8 kB / 0.8682 GB, free: 29.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005129/1.16, allocations: 0.6966 MB / 0.8689 GB, free: 28.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.16, allocations: 0 / 0.8689 GB, free: 28.43 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001191/1.162, allocations: 0.9748 MB / 0.8699 GB, free: 27.42 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001579/1.163, allocations: 1.682 MB / 0.8715 GB, free: 25.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/1.163, allocations: 148.2 kB / 0.8717 GB, free: 25.54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/1.164, allocations: 4 kB / 0.8717 GB, free: 25.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004744/1.164, allocations: 32.03 kB / 0.8717 GB, free: 25.51 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.717e-05/1.164, allocations: 31.95 kB / 0.8717 GB, free: 25.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/1.164, allocations: 31.89 kB / 0.8718 GB, free: 25.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000365/1.165, allocations: 419.1 kB / 0.8722 GB, free: 25.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002766/1.167, allocations: 0.6517 MB / 0.8728 GB, free: 24.39 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/1.168, allocations: 0.5956 MB / 0.8734 GB, free: 23.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/1.17, allocations: 0.9925 MB / 0.8743 GB, free: 22.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.17, allocations: 0 / 0.8743 GB, free: 22.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003874/1.17, allocations: 293.5 kB / 0.8746 GB, free: 22.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/1.171, allocations: 221.6 kB / 0.8748 GB, free: 22.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/1.173, allocations: 1.059 MB / 0.8759 GB, free: 21.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005084/1.173, allocations: 1.053 MB / 0.8769 GB, free: 20.15 MB / 442.7 MB Notification: Performance of SimCode: time 3e-07/1.173, allocations: 0 / 0.8769 GB, free: 20.15 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)