Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.008664/0.008664, allocations: 185.3 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001178/0.001177, allocations: 86.91 kB / 270.9 MB, free: 8.367 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.5365/0.5365, allocations: 43.56 MB / 362.7 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006465/0.0006465, allocations: 12 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1424, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.18/1.323, allocations: 335.7 MB / 0.8066 GB, free: 35.84 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/1.323, allocations: 87.14 kB / 0.8067 GB, free: 35.79 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8726/2.196, allocations: 143.5 MB / 0.9469 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.455e-06/2.196, allocations: 0 / 0.9469 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001053/2.196, allocations: 27.45 kB / 0.9469 GB, free: 111.2 MB / 0.4948 GB 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.00498/2.201, allocations: 1.285 MB / 0.9482 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/2.201, allocations: 12.02 kB / 0.9482 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005756/2.202, allocations: 113.6 kB / 0.9483 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006287/2.202, allocations: 106.9 kB / 0.9484 GB, free: 110 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/2.205, allocations: 0.6808 MB / 0.9491 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001602/2.205, allocations: 108.1 kB / 0.9492 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/2.205, allocations: 58.5 kB / 0.9492 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002743/2.208, allocations: 1.028 MB / 0.9502 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.767e-05/2.208, allocations: 4 kB / 0.9502 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/2.208, allocations: 31.7 kB / 0.9502 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/2.208, allocations: 53.28 kB / 0.9503 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002553/2.211, allocations: 0.9184 MB / 0.9512 GB, free: 107 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/2.221, allocations: 4.006 MB / 0.9551 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/2.223, allocations: 0.6537 MB / 0.9557 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004988/2.228, allocations: 2.367 MB / 0.9581 GB, free: 99.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/2.229, allocations: 0.5069 MB / 0.9586 GB, free: 99.05 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 3.236e-06/2.229, allocations: 0 / 0.9586 GB, free: 99.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53): time 0.009446/2.239, allocations: 2.79 MB / 0.9613 GB, free: 96.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/2.239, allocations: 239.8 kB / 0.9615 GB, free: 95.85 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/2.241, allocations: 0.7423 MB / 0.9622 GB, free: 95.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002216/2.241, allocations: 41.7 kB / 0.9623 GB, free: 95.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003189/2.241, allocations: 432.5 kB / 0.9627 GB, free: 94.62 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/2.241, allocations: 177.9 kB / 0.9629 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.729e-05/2.241, allocations: 16 kB / 0.9629 GB, free: 94.44 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.8e-05/2.242, allocations: 338.8 kB / 0.9632 GB, free: 94.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009755/2.243, allocations: 369.8 kB / 0.9635 GB, free: 93.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/2.244, allocations: 0.6096 MB / 0.9641 GB, free: 93.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/2.245, allocations: 459.6 kB / 0.9646 GB, free: 92.56 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/2.245, allocations: 7.953 kB / 0.9646 GB, free: 92.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003428/2.248, allocations: 1.232 MB / 0.9658 GB, free: 91.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005476/2.249, allocations: 2.479 MB / 0.9682 GB, free: 88.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/2.249, allocations: 8 kB / 0.9682 GB, free: 88.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/2.25, allocations: 341.3 kB / 0.9685 GB, free: 88.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/2.252, allocations: 155.7 kB / 0.9687 GB, free: 88.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/2.253, allocations: 1.436 MB / 0.9701 GB, free: 86.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/2.255, allocations: 67.88 kB / 0.9702 GB, free: 86.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/2.255, allocations: 39.98 kB / 0.9702 GB, free: 86.53 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/2.255, allocations: 4.625 kB / 0.9702 GB, free: 86.53 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003384/2.259, allocations: 1.2 MB / 0.9714 GB, free: 85.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/2.259, allocations: 16.11 kB / 0.9714 GB, free: 85.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/2.26, allocations: 309.5 kB / 0.9717 GB, free: 84.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/2.261, allocations: 155.7 kB / 0.9718 GB, free: 84.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/2.263, allocations: 1.405 MB / 0.9732 GB, free: 83.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/2.264, allocations: 52.06 kB / 0.9733 GB, free: 83.33 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/2.264, allocations: 43.98 kB / 0.9733 GB, free: 83.29 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 () * Number of clocked 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.0008031/2.265, allocations: 391.8 kB / 0.9737 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002777/2.265, allocations: 94.88 kB / 0.9738 GB, free: 82.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/2.269, allocations: 1.136 MB / 0.9749 GB, free: 81.64 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/2.269, allocations: 4 kB / 0.9749 GB, free: 81.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/2.269, allocations: 4 kB / 0.9749 GB, free: 81.63 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/2.269, allocations: 3.984 kB / 0.9749 GB, free: 81.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004944/2.274, allocations: 1.991 MB / 0.9768 GB, free: 79.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/2.274, allocations: 4 kB / 0.9768 GB, free: 79.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007537/2.275, allocations: 83.83 kB / 0.9769 GB, free: 79.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001327/2.276, allocations: 337.5 kB / 0.9772 GB, free: 79.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/2.276, allocations: 12 kB / 0.9772 GB, free: 79.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/2.278, allocations: 1.439 MB / 0.9786 GB, free: 77.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/2.278, allocations: 3.938 kB / 0.9787 GB, free: 77.66 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003951/2.282, allocations: 1.63 MB / 0.9802 GB, free: 76 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008036/2.283, allocations: 260 kB / 0.9805 GB, free: 75.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/2.283, allocations: 15.98 kB / 0.9805 GB, free: 75.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/2.284, allocations: 51.94 kB / 0.9806 GB, free: 75.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/2.284, allocations: 48.36 kB / 0.9806 GB, free: 75.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/2.284, allocations: 27.98 kB / 0.9806 GB, free: 75.58 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001152/2.285, allocations: 0.5771 MB / 0.9812 GB, free: 75.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.12e-07/2.285, allocations: 0 / 0.9812 GB, free: 75.01 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003232/2.289, allocations: 0.683 MB / 0.9819 GB, free: 74.32 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) * Number of clocked states: 0 () * 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,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.006321/2.295, allocations: 2.632 MB / 0.9844 GB, free: 71.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00527/2.3, allocations: 1.538 MB / 0.9859 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/2.3, allocations: 4.062 kB / 0.9859 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001777/2.302, allocations: 497.8 kB / 0.9864 GB, free: 69.64 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003097/2.305, allocations: 329.4 kB / 0.9867 GB, free: 69.32 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008589/2.314, allocations: 7.039 MB / 0.9936 GB, free: 62.11 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005753/2.315, allocations: 1.021 MB / 0.9946 GB, free: 61.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007769/2.315, allocations: 311.3 kB / 0.9949 GB, free: 60.75 MB / 0.4948 GB Notification: Performance of SimCode: time 1.383e-06/2.315, allocations: 0 / 0.9949 GB, free: 60.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.698/6.014, allocations: 26.66 MB / 1.021 GB, free: 34.11 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)