Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.0009913/0.000991, allocations: 204.3 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.12/1.12, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008371/0.0008371, allocations: 93.28 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08958/0.09045, allocations: 56.9 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07889/0.1693, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4957/0.6651, allocations: 324.5 MB / 0.7023 GB, free: 32.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.6653, allocations: 93.25 kB / 0.7024 GB, free: 32.25 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.4936/1.159, allocations: 196.4 MB / 0.8942 GB, free: 14.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/1.159, allocations: 8 kB / 0.8942 GB, free: 14.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003515/1.159, allocations: 114.8 kB / 0.8943 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/1.161, allocations: 0.7414 MB / 0.895 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/1.161, allocations: 20 kB / 0.895 GB, free: 13.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.652e-05/1.161, allocations: 43.91 kB / 0.8951 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001182/1.162, allocations: 0.9201 MB / 0.896 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/1.163, allocations: 0.9733 MB / 0.8969 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.87e-05/1.163, allocations: 3.984 kB / 0.8969 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.701e-05/1.163, allocations: 4 kB / 0.8969 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.723e-05/1.163, allocations: 69.27 kB / 0.897 GB, free: 11.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004787/1.168, allocations: 4.258 MB / 0.9011 GB, free: 7.359 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/1.169, allocations: 423.5 kB / 0.9015 GB, free: 6.938 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003431/1.169, allocations: 310 kB / 0.9018 GB, free: 6.629 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001759/1.171, allocations: 2.008 MB / 0.9038 GB, free: 4.422 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/1.171, allocations: 50.88 kB / 0.9038 GB, free: 4.363 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 1.723e-06/1.171, allocations: 0 / 0.9038 GB, free: 4.363 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.004999/1.176, allocations: 1.798 MB / 0.9056 GB, free: 2.508 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/1.176, allocations: 158.2 kB / 0.9058 GB, free: 2.316 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006417/1.176, allocations: 0.6403 MB / 0.9064 GB, free: 1.672 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.951e-05/1.176, allocations: 29.7 kB / 0.9064 GB, free: 1.637 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/1.177, allocations: 394.3 kB / 0.9068 GB, free: 1.242 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/1.177, allocations: 157.7 kB / 0.9069 GB, free: 1.086 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/1.177, allocations: 0 / 0.9069 GB, free: 1.086 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.054e-05/1.177, allocations: 390.7 kB / 0.9073 GB, free: 0.6953 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004038/1.177, allocations: 313.8 kB / 0.9076 GB, free: 400 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1186/1.296, allocations: 0.5741 MB / 0.9082 GB, free: 106.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003087/1.299, allocations: 0.8866 MB / 0.909 GB, free: 106.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/1.299, allocations: 3.938 kB / 0.909 GB, free: 106.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003761/1.303, allocations: 1.506 MB / 0.9105 GB, free: 106 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003869/1.303, allocations: 3.312 MB / 0.9137 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/1.303, allocations: 7.875 kB / 0.9137 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/1.304, allocations: 165.7 kB / 0.9139 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/1.304, allocations: 179.7 kB / 0.9141 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/1.306, allocations: 1.537 MB / 0.9156 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007958/1.307, allocations: 46.48 kB / 0.9156 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/1.307, allocations: 47.38 kB / 0.9157 GB, free: 101.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.553e-06/1.307, allocations: 3.75 kB / 0.9157 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003286/1.31, allocations: 1.324 MB / 0.917 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/1.31, allocations: 10.62 kB / 0.917 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005159/1.311, allocations: 163.5 kB / 0.9171 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/1.311, allocations: 182.5 kB / 0.9173 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/1.313, allocations: 1.438 MB / 0.9187 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006375/1.313, allocations: 51.53 kB / 0.9188 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.805e-05/1.314, allocations: 37.95 kB / 0.9188 GB, free: 100.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001742/1.314, allocations: 137.7 kB / 0.9189 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/1.314, allocations: 81.59 kB / 0.919 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/1.316, allocations: 0.835 MB / 0.9198 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-06/1.316, allocations: 14.45 kB / 0.9198 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/1.316, allocations: 0 / 0.9198 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/1.316, allocations: 0 / 0.9198 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002447/1.318, allocations: 1.572 MB / 0.9214 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/1.318, allocations: 3.5 kB / 0.9214 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/1.319, allocations: 75.7 kB / 0.9214 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005206/1.319, allocations: 161.4 kB / 0.9216 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/1.319, allocations: 6.875 kB / 0.9216 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/1.32, allocations: 1.415 MB / 0.923 GB, free: 98.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.32, allocations: 0 / 0.923 GB, free: 98.96 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001652/1.322, allocations: 1.141 MB / 0.9241 GB, free: 98.7 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002054/1.324, allocations: 1.875 MB / 0.9259 GB, free: 98.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/1.324, allocations: 173.8 kB / 0.9261 GB, free: 97.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/1.324, allocations: 7.797 kB / 0.9261 GB, free: 97.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005425/1.325, allocations: 35.12 kB / 0.9261 GB, free: 97.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.582e-05/1.325, allocations: 48 kB / 0.9262 GB, free: 97.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/1.325, allocations: 29.42 kB / 0.9262 GB, free: 97.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004662/1.326, allocations: 490 kB / 0.9267 GB, free: 97.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003215/1.329, allocations: 0.9306 MB / 0.9276 GB, free: 97.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001442/1.33, allocations: 0.8223 MB / 0.9284 GB, free: 97.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/1.332, allocations: 1.184 MB / 0.9295 GB, free: 97.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.332, allocations: 2.5 kB / 0.9295 GB, free: 97.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004133/1.332, allocations: 300.2 kB / 0.9298 GB, free: 97.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/1.334, allocations: 293.1 kB / 0.9301 GB, free: 97.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/1.336, allocations: 1.255 MB / 0.9313 GB, free: 97.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000578/1.336, allocations: 1.147 MB / 0.9325 GB, free: 96.69 MB / 442.7 MB Notification: Performance of SimCode: time 3.91e-07/1.336, allocations: 0 / 0.9325 GB, free: 96.69 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)