Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.64/1.64, allocations: 221.5 MB / 230.7 MB, free: 7.547 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.001059/0.001059, allocations: 98.73 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2665/0.2665, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.585e-05/2.574e-05, allocations: 8.156 kB / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.1997, allocations: 61.91 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.223/1.423, allocations: 335.8 MB / 0.8227 GB, free: 53.19 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/1.423, allocations: 84.64 kB / 0.8228 GB, free: 53.14 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.7449/2.168, allocations: 144.9 MB / 0.9642 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.525e-06/2.168, allocations: 3.938 kB / 0.9642 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.352e-05/2.168, allocations: 20 kB / 0.9642 GB, free: 129.5 MB / 0.5105 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.00297/2.171, allocations: 1.181 MB / 0.9654 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/2.171, allocations: 11.98 kB / 0.9654 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003826/2.172, allocations: 119.4 kB / 0.9655 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/2.173, allocations: 0.6823 MB / 0.9662 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/2.173, allocations: 84.7 kB / 0.9663 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/2.173, allocations: 36 kB / 0.9663 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001128/2.174, allocations: 0.8186 MB / 0.9671 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/2.176, allocations: 0.9356 MB / 0.968 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/2.176, allocations: 0 / 0.968 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.289e-05/2.176, allocations: 4 kB / 0.968 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.363e-05/2.176, allocations: 53.28 kB / 0.9681 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005321/2.181, allocations: 3.876 MB / 0.9719 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007858/2.182, allocations: 0.618 MB / 0.9725 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004336/2.182, allocations: 394.2 kB / 0.9728 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002853/2.185, allocations: 2.387 MB / 0.9752 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005883/2.186, allocations: 482.5 kB / 0.9756 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=48): time 2.315e-06/2.186, allocations: 0 / 0.9756 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=53): time 0.006475/2.192, allocations: 2.527 MB / 0.9781 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/2.192, allocations: 243.8 kB / 0.9783 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000719/2.193, allocations: 0.5542 MB / 0.9789 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.298e-05/2.193, allocations: 25.7 kB / 0.9789 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/2.193, allocations: 435 kB / 0.9793 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/2.194, allocations: 165.7 kB / 0.9795 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/2.194, allocations: 4 kB / 0.9795 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000122/2.194, allocations: 378.8 kB / 0.9798 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004254/2.194, allocations: 353.4 kB / 0.9802 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005634/2.195, allocations: 0.5865 MB / 0.9807 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/2.197, allocations: 0.7123 MB / 0.9814 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/2.197, allocations: 3.938 kB / 0.9814 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003105/2.2, allocations: 1.48 MB / 0.9829 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006627/2.201, allocations: 2.473 MB / 0.9853 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/2.201, allocations: 8 kB / 0.9853 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006915/2.201, allocations: 317.4 kB / 0.9856 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/2.202, allocations: 151.7 kB / 0.9858 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/2.204, allocations: 1.628 MB / 0.9873 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007898/2.204, allocations: 36.03 kB / 0.9874 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.402e-05/2.205, allocations: 39.98 kB / 0.9874 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/2.205, allocations: 4 kB / 0.9874 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002878/2.207, allocations: 1.361 MB / 0.9888 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/2.207, allocations: 11.94 kB / 0.9888 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005802/2.208, allocations: 309.9 kB / 0.9891 GB, free: 103 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/2.209, allocations: 151.7 kB / 0.9892 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/2.21, allocations: 1.588 MB / 0.9908 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007096/2.211, allocations: 31.91 kB / 0.9908 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.539e-05/2.211, allocations: 40 kB / 0.9908 GB, free: 101.1 MB / 0.5105 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.0003048/2.211, allocations: 171.1 kB / 0.991 GB, free: 101 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00247/2.214, allocations: 1.127 MB / 0.9921 GB, free: 99.82 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/2.214, allocations: 75.16 kB / 0.9922 GB, free: 99.74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002706/2.217, allocations: 1.223 MB / 0.9934 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/2.217, allocations: 8 kB / 0.9934 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/2.217, allocations: 0 / 0.9934 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/2.217, allocations: 0 / 0.9934 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003508/2.22, allocations: 2.019 MB / 0.9953 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/2.22, allocations: 4 kB / 0.9953 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/2.221, allocations: 79.89 kB / 0.9954 GB, free: 96.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006288/2.221, allocations: 317.3 kB / 0.9957 GB, free: 96.04 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/2.221, allocations: 15.92 kB / 0.9957 GB, free: 96.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00169/2.223, allocations: 1.596 MB / 0.9973 GB, free: 94.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/2.223, allocations: 0 / 0.9973 GB, free: 94.38 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/2.226, allocations: 1.708 MB / 0.999 GB, free: 92.65 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004238/2.226, allocations: 256 kB / 0.9992 GB, free: 92.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/2.226, allocations: 4 kB / 0.9992 GB, free: 92.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/2.227, allocations: 36.03 kB / 0.9992 GB, free: 92.34 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/2.227, allocations: 52.36 kB / 0.9993 GB, free: 92.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.429e-05/2.227, allocations: 23.98 kB / 0.9993 GB, free: 92.27 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005288/2.228, allocations: 431.1 kB / 0.9997 GB, free: 91.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/2.228, allocations: 0 / 0.9997 GB, free: 91.85 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002294/2.23, allocations: 0.6478 MB / 1 GB, free: 91.2 MB / 0.5105 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.004582/2.235, allocations: 2.715 MB / 1.003 GB, free: 88.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002482/2.237, allocations: 1.468 MB / 1.004 GB, free: 87.01 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/2.237, allocations: 8 kB / 1.004 GB, free: 87 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000716/2.238, allocations: 472.9 kB / 1.005 GB, free: 86.53 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/2.239, allocations: 263.2 kB / 1.005 GB, free: 86.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003923/2.243, allocations: 1.572 MB / 1.007 GB, free: 84.66 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/2.244, allocations: 1.034 MB / 1.008 GB, free: 83.59 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001134/2.245, allocations: 329.5 kB / 1.008 GB, free: 83.27 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/2.245, allocations: 287.3 kB / 1.008 GB, free: 82.99 MB / 0.5105 GB Notification: Performance of SimCode: time 2.114e-06/2.245, allocations: 0 / 1.008 GB, free: 82.99 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05823/2.303, allocations: 26.95 MB / 1.035 GB, free: 56.13 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/2.304, allocations: 181.7 kB / 1.035 GB, free: 55.94 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.43/5.733, allocations: 4 kB / 1.035 GB, free: 55.94 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat does not exist to compare? outputFormat=mat