Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",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 3.2.3+maint.om/package.mo): time 0.001475/0.001474, allocations: 190.7 kB / 7.807 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009116/0.0009114, allocations: 96.33 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.224/0.224, allocations: 43.49 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.261/0.4851, allocations: 64.97 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.8914, allocations: 58.85 MB / 476.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6991/1.591, allocations: 334.9 MB / 0.7925 GB, free: 1.789 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/1.591, allocations: 88.14 kB / 0.7926 GB, free: 1.742 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.6822/2.273, allocations: 143.6 MB / 0.9328 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/2.273, allocations: 8 kB / 0.9328 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/2.274, allocations: 110.9 kB / 0.9329 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/2.277, allocations: 0.6831 MB / 0.9336 GB, free: 99.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/2.277, allocations: 88.7 kB / 0.9337 GB, free: 99.83 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002757/2.277, allocations: 32 kB / 0.9337 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001731/2.279, allocations: 0.8498 MB / 0.9345 GB, free: 98.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001812/2.281, allocations: 0.9511 MB / 0.9355 GB, free: 97.95 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/2.281, allocations: 0 / 0.9355 GB, free: 97.95 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/2.281, allocations: 4 kB / 0.9355 GB, free: 97.95 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.312e-05/2.281, allocations: 57.27 kB / 0.9355 GB, free: 97.89 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007307/2.288, allocations: 3.917 MB / 0.9394 GB, free: 93.84 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008096/2.289, allocations: 0.5338 MB / 0.9399 GB, free: 93.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/2.29, allocations: 406.1 kB / 0.9403 GB, free: 92.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004039/2.294, allocations: 2.395 MB / 0.9426 GB, free: 90.27 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006629/2.294, allocations: 0.4913 MB / 0.9431 GB, free: 89.75 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 3.486e-06/2.294, allocations: 0 / 0.9431 GB, free: 89.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53): time 0.007681/2.302, allocations: 2.497 MB / 0.9455 GB, free: 87.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/2.302, allocations: 247.7 kB / 0.9458 GB, free: 86.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000864/2.303, allocations: 0.5542 MB / 0.9463 GB, free: 86.34 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.625e-05/2.303, allocations: 29.64 kB / 0.9463 GB, free: 86.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/2.304, allocations: 343.1 kB / 0.9467 GB, free: 85.96 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/2.304, allocations: 169.6 kB / 0.9468 GB, free: 85.79 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/2.304, allocations: 0 / 0.9468 GB, free: 85.79 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002196/2.304, allocations: 383.4 kB / 0.9472 GB, free: 85.41 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/2.305, allocations: 361.4 kB / 0.9475 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000626/2.305, allocations: 0.5982 MB / 0.9481 GB, free: 84.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004578/2.31, allocations: 1.099 MB / 0.9492 GB, free: 83.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/2.31, allocations: 0 / 0.9492 GB, free: 83.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.005888/2.316, allocations: 1.819 MB / 0.951 GB, free: 81.41 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006856/2.316, allocations: 2.434 MB / 0.9533 GB, free: 78.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/2.316, allocations: 11.91 kB / 0.9533 GB, free: 78.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007778/2.317, allocations: 321.4 kB / 0.9537 GB, free: 78.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/2.318, allocations: 143.8 kB / 0.9538 GB, free: 78.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/2.32, allocations: 1.674 MB / 0.9554 GB, free: 76.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/2.321, allocations: 35.91 kB / 0.9555 GB, free: 76.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/2.321, allocations: 43.97 kB / 0.9555 GB, free: 76.51 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/2.321, allocations: 4 kB / 0.9555 GB, free: 76.51 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005611/2.327, allocations: 1.674 MB / 0.9571 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/2.327, allocations: 8 kB / 0.9571 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007157/2.328, allocations: 309.8 kB / 0.9574 GB, free: 74.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/2.328, allocations: 159.7 kB / 0.9576 GB, free: 74.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/2.331, allocations: 1.62 MB / 0.9592 GB, free: 72.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/2.332, allocations: 35.95 kB / 0.9592 GB, free: 72.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/2.332, allocations: 39.98 kB / 0.9592 GB, free: 72.61 MB / 0.4948 GB 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,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],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 (84): * Single equations (assignments): 81 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004744/2.332, allocations: 172.7 kB / 0.9594 GB, free: 72.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002836/2.332, allocations: 75.06 kB / 0.9595 GB, free: 72.36 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003345/2.336, allocations: 1.207 MB / 0.9607 GB, free: 71.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/2.336, allocations: 4 kB / 0.9607 GB, free: 71.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/2.336, allocations: 12.06 kB / 0.9607 GB, free: 71.12 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/2.336, allocations: 3.984 kB / 0.9607 GB, free: 71.12 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004475/2.34, allocations: 2.004 MB / 0.9626 GB, free: 69.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/2.34, allocations: 0 / 0.9626 GB, free: 69.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004404/2.341, allocations: 79.89 kB / 0.9627 GB, free: 69 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006909/2.342, allocations: 309.5 kB / 0.963 GB, free: 68.69 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.931e-05/2.342, allocations: 11.98 kB / 0.963 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002122/2.344, allocations: 1.638 MB / 0.9646 GB, free: 66.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/2.344, allocations: 0 / 0.9646 GB, free: 66.99 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003564/2.347, allocations: 1.707 MB / 0.9663 GB, free: 65.26 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004208/2.352, allocations: 2.585 MB / 0.9688 GB, free: 62.65 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008274/2.352, allocations: 256.9 kB / 0.9691 GB, free: 62.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003414/2.353, allocations: 8 kB / 0.9691 GB, free: 62.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008639/2.354, allocations: 39.81 kB / 0.9691 GB, free: 62.33 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/2.354, allocations: 48.36 kB / 0.9692 GB, free: 62.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.64e-05/2.354, allocations: 27.98 kB / 0.9692 GB, free: 62.26 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0007235/2.355, allocations: 435.1 kB / 0.9696 GB, free: 61.84 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004643/2.359, allocations: 0.7338 MB / 0.9703 GB, free: 61.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002815/2.362, allocations: 0.6277 MB / 0.9709 GB, free: 60.51 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00342/2.366, allocations: 1.412 MB / 0.9723 GB, free: 59.08 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/2.366, allocations: 1.188 kB / 0.9723 GB, free: 59.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009992/2.367, allocations: 455 kB / 0.9727 GB, free: 58.63 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/2.369, allocations: 265.8 kB / 0.973 GB, free: 58.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004152/2.373, allocations: 1.299 MB / 0.9743 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/2.374, allocations: 1.111 MB / 0.9753 GB, free: 55.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.462e-06/2.374, allocations: 0 / 0.9753 GB, free: 55.9 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)