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.002182/0.002182, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.171/2.171, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001109/0.001109, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2913/0.2913, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.009e-05/7.018e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.127, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.213/1.34, allocations: 335.6 MB / 0.8006 GB, free: 89.07 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/1.341, allocations: 83.14 kB / 0.8007 GB, free: 89.03 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.8582/2.199, allocations: 143 MB / 0.9404 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.063e-06/2.199, allocations: 0 / 0.9404 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.404e-05/2.199, allocations: 21.22 kB / 0.9404 GB, free: 129.4 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.003701/2.203, allocations: 1.185 MB / 0.9416 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/2.203, allocations: 9.844 kB / 0.9416 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003784/2.203, allocations: 104.4 kB / 0.9417 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006515/2.204, allocations: 108.7 kB / 0.9418 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/2.206, allocations: 0.6797 MB / 0.9425 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/2.206, allocations: 105.9 kB / 0.9426 GB, free: 128 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/2.207, allocations: 52.94 kB / 0.9426 GB, free: 128 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002364/2.209, allocations: 1.022 MB / 0.9436 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/2.209, allocations: 3.938 kB / 0.9436 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/2.209, allocations: 27.38 kB / 0.9436 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/2.209, allocations: 56.72 kB / 0.9437 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002145/2.211, allocations: 0.8914 MB / 0.9446 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009555/2.221, allocations: 4.031 MB / 0.9485 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/2.223, allocations: 0.6498 MB / 0.9491 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008553/2.223, allocations: 401.3 kB / 0.9495 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004882/2.228, allocations: 2.424 MB / 0.9519 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/2.229, allocations: 0.499 MB / 0.9524 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 3.347e-06/2.229, allocations: 3.969 kB / 0.9524 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53): time 0.006251/2.236, allocations: 2.129 MB / 0.9545 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.386e-05/2.236, allocations: 239 kB / 0.9547 GB, free: 121 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/2.237, allocations: 0.7396 MB / 0.9554 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001825/2.237, allocations: 37.48 kB / 0.9554 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003284/2.238, allocations: 433 kB / 0.9559 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/2.238, allocations: 177.4 kB / 0.956 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.961e-05/2.238, allocations: 15.81 kB / 0.956 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.261e-05/2.238, allocations: 342.1 kB / 0.9564 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008935/2.239, allocations: 365.1 kB / 0.9567 GB, free: 119.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/2.24, allocations: 0.6022 MB / 0.9573 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009928/2.241, allocations: 449.1 kB / 0.9577 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/2.241, allocations: 7.656 kB / 0.9577 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003229/2.244, allocations: 1.221 MB / 0.9589 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005689/2.245, allocations: 2.476 MB / 0.9613 GB, free: 116 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/2.245, allocations: 3.969 kB / 0.9614 GB, free: 116 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/2.247, allocations: 337.4 kB / 0.9617 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/2.248, allocations: 153.9 kB / 0.9618 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/2.25, allocations: 1.438 MB / 0.9632 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/2.251, allocations: 53.69 kB / 0.9633 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001532/2.251, allocations: 44.55 kB / 0.9633 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/2.251, allocations: 5.406 kB / 0.9633 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003155/2.255, allocations: 1.195 MB / 0.9645 GB, free: 114.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/2.255, allocations: 3.781 kB / 0.9645 GB, free: 114.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/2.256, allocations: 322.1 kB / 0.9648 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/2.257, allocations: 154.3 kB / 0.9649 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/2.258, allocations: 1.409 MB / 0.9663 GB, free: 113 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/2.26, allocations: 50.91 kB / 0.9664 GB, free: 113 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/2.26, allocations: 36.48 kB / 0.9664 GB, free: 113 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.0003851/2.26, allocations: 203.3 kB / 0.9666 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000278/2.26, allocations: 89 kB / 0.9667 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003227/2.264, allocations: 1.124 MB / 0.9678 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/2.264, allocations: 3.719 kB / 0.9678 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/2.264, allocations: 10.67 kB / 0.9678 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/2.264, allocations: 3.891 kB / 0.9678 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/2.268, allocations: 1.974 MB / 0.9697 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/2.268, allocations: 0 / 0.9697 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00076/2.269, allocations: 81.72 kB / 0.9698 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001296/2.27, allocations: 329.7 kB / 0.9701 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/2.271, allocations: 20.89 kB / 0.9701 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/2.272, allocations: 1.432 MB / 0.9715 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/2.272, allocations: 0 / 0.9715 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003755/2.276, allocations: 1.6 MB / 0.9731 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008041/2.277, allocations: 271.7 kB / 0.9734 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/2.277, allocations: 15.44 kB / 0.9734 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/2.278, allocations: 47.7 kB / 0.9734 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/2.279, allocations: 46.47 kB / 0.9735 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/2.279, allocations: 36.36 kB / 0.9735 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001134/2.28, allocations: 0.5652 MB / 0.974 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.51e-07/2.28, allocations: 3.562 kB / 0.9741 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003028/2.283, allocations: 0.6821 MB / 0.9747 GB, free: 108.9 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,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005722/2.289, allocations: 2.617 MB / 0.9773 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004451/2.293, allocations: 1.515 MB / 0.9788 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/2.293, allocations: 0 / 0.9788 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001546/2.295, allocations: 489.8 kB / 0.9792 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002793/2.298, allocations: 330.7 kB / 0.9795 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005524/2.303, allocations: 1.694 MB / 0.9812 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005658/2.304, allocations: 1.024 MB / 0.9822 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007293/2.305, allocations: 314.4 kB / 0.9825 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.603e-06/2.305, allocations: 4 kB / 0.9825 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.368/5.672, allocations: 26.83 MB / 1.009 GB, free: 77.34 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)