Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",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.001196/0.001196, allocations: 184.3 kB / 8.138 MB, free: 2.223 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.157/1.157, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0009931/0.0009931, allocations: 108.7 kB / 280.8 MB, free: 1.332 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09588/0.0969, allocations: 55.82 MB / 336.6 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.303, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5482/0.8512, allocations: 324 MB / 0.6943 GB, free: 127.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.8514, allocations: 97.62 kB / 0.6944 GB, free: 127 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.7424/1.594, allocations: 288.8 MB / 0.9765 GB, free: 17.08 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/1.594, allocations: 8 kB / 0.9765 GB, free: 17.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009966/1.595, allocations: 170.1 kB / 0.9767 GB, free: 16.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/1.597, allocations: 1.044 MB / 0.9777 GB, free: 15.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.7e-05/1.598, allocations: 36 kB / 0.9777 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003603/1.598, allocations: 60 kB / 0.9778 GB, free: 15.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003149/1.601, allocations: 1.468 MB / 0.9792 GB, free: 14.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003072/1.604, allocations: 1.5 MB / 0.9807 GB, free: 12.69 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/1.604, allocations: 11.92 kB / 0.9807 GB, free: 12.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002048/1.604, allocations: 8 kB / 0.9807 GB, free: 12.67 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/1.605, allocations: 109.8 kB / 0.9808 GB, free: 12.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009532/1.614, allocations: 6.299 MB / 0.9869 GB, free: 5.977 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008802/1.615, allocations: 0.6691 MB / 0.9876 GB, free: 5.305 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006875/1.616, allocations: 0.5497 MB / 0.9881 GB, free: 4.754 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003438/1.619, allocations: 2.817 MB / 0.9909 GB, free: 1.715 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/1.619, allocations: 47.2 kB / 0.9909 GB, free: 1.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 2.705e-06/1.619, allocations: 4 kB / 0.9909 GB, free: 1.656 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.1563/1.776, allocations: 3.25 MB / 0.9941 GB, free: 90.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/1.776, allocations: 194.7 kB / 0.9943 GB, free: 90.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/1.777, allocations: 0.8769 MB / 0.9951 GB, free: 90.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001551/1.777, allocations: 33.5 kB / 0.9952 GB, free: 90.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002925/1.777, allocations: 0.5037 MB / 0.9957 GB, free: 89.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/1.778, allocations: 302.9 kB / 0.996 GB, free: 89.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-05/1.778, allocations: 6.844 kB / 0.996 GB, free: 89.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.458e-05/1.778, allocations: 362.2 kB / 0.9963 GB, free: 89.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000758/1.779, allocations: 0.5435 MB / 0.9968 GB, free: 89.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008667/1.78, allocations: 0.9333 MB / 0.9978 GB, free: 89.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0036/1.783, allocations: 1.299 MB / 0.999 GB, free: 89.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/1.783, allocations: 3.875 kB / 0.999 GB, free: 89.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005567/1.789, allocations: 2.355 MB / 1.001 GB, free: 88.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007888/1.79, allocations: 4.357 MB / 1.006 GB, free: 84.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-05/1.79, allocations: 12.75 kB / 1.006 GB, free: 84.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/1.791, allocations: 333.9 kB / 1.006 GB, free: 84.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/1.792, allocations: 287.6 kB / 1.006 GB, free: 84.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003283/1.795, allocations: 2.517 MB / 1.009 GB, free: 82.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/1.796, allocations: 78.89 kB / 1.009 GB, free: 82.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/1.797, allocations: 72.73 kB / 1.009 GB, free: 82.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.095e-06/1.797, allocations: 3.406 kB / 1.009 GB, free: 82.78 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00468/1.801, allocations: 2.061 MB / 1.011 GB, free: 82.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/1.801, allocations: 11.91 kB / 1.011 GB, free: 82.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008916/1.802, allocations: 269.9 kB / 1.011 GB, free: 82.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/1.803, allocations: 293 kB / 1.011 GB, free: 82.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/1.806, allocations: 2.272 MB / 1.014 GB, free: 81.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/1.807, allocations: 76.17 kB / 1.014 GB, free: 81.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/1.807, allocations: 62.7 kB / 1.014 GB, free: 81.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003714/1.808, allocations: 157.4 kB / 1.014 GB, free: 81.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003779/1.808, allocations: 127.4 kB / 1.014 GB, free: 80.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/1.812, allocations: 1.6 MB / 1.016 GB, free: 80.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/1.812, allocations: 11.12 kB / 1.016 GB, free: 80.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/1.812, allocations: 3.906 kB / 1.016 GB, free: 80.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/1.812, allocations: 7.406 kB / 1.016 GB, free: 80.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005228/1.817, allocations: 2.777 MB / 1.018 GB, free: 80.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/1.817, allocations: 0 / 1.018 GB, free: 80.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007197/1.818, allocations: 153.9 kB / 1.018 GB, free: 80.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/1.819, allocations: 319.4 kB / 1.019 GB, free: 80.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.229e-05/1.819, allocations: 14.77 kB / 1.019 GB, free: 80.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/1.822, allocations: 2.314 MB / 1.021 GB, free: 78.92 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.822, allocations: 8.125 kB / 1.021 GB, free: 78.92 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003607/1.825, allocations: 2.198 MB / 1.023 GB, free: 78.57 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004523/1.83, allocations: 3.289 MB / 1.026 GB, free: 77.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004108/1.83, allocations: 226.7 kB / 1.027 GB, free: 77.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003185/1.83, allocations: 11.95 kB / 1.027 GB, free: 77.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/1.831, allocations: 63.59 kB / 1.027 GB, free: 77.67 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/1.832, allocations: 86.25 kB / 1.027 GB, free: 77.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/1.832, allocations: 47.16 kB / 1.027 GB, free: 77.67 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008626/1.833, allocations: 0.6641 MB / 1.027 GB, free: 77.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004745/1.837, allocations: 1.327 MB / 1.029 GB, free: 77.56 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002736/1.84, allocations: 1.097 MB / 1.03 GB, free: 77.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003694/1.844, allocations: 2.146 MB / 1.032 GB, free: 77.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/1.844, allocations: 5.312 kB / 1.032 GB, free: 77.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/1.845, allocations: 0.6677 MB / 1.033 GB, free: 77.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/1.848, allocations: 461.5 kB / 1.033 GB, free: 77.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/1.852, allocations: 2.107 MB / 1.035 GB, free: 76.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001193/1.853, allocations: 1.421 MB / 1.036 GB, free: 76.22 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/1.853, allocations: 0 / 1.036 GB, free: 76.22 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)