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.00129/0.001291, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.578/1.578, allocations: 221.3 MB / 236 MB, free: 2.965 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.001013/0.001014, allocations: 95.62 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2787/0.2787, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.336e-05/4.339e-05, allocations: 224 / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1872, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.287/1.475, allocations: 336.4 MB / 0.8303 GB, free: 71.46 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003279/1.475, allocations: 84.58 kB / 0.8304 GB, free: 71.42 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.7736/2.249, allocations: 146 MB / 0.973 GB, free: 144 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.863e-06/2.249, allocations: 0 / 0.973 GB, free: 144 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.795e-05/2.249, allocations: 21.19 kB / 0.9731 GB, free: 144 MB / 0.5261 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.003748/2.252, allocations: 1.185 MB / 0.9742 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.626e-05/2.253, allocations: 11.69 kB / 0.9742 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001923/2.253, allocations: 105.7 kB / 0.9743 GB, free: 143.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005191/2.253, allocations: 110.4 kB / 0.9744 GB, free: 143.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001582/2.255, allocations: 0.6787 MB / 0.9751 GB, free: 142.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/2.255, allocations: 110.4 kB / 0.9752 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/2.255, allocations: 57.88 kB / 0.9753 GB, free: 142.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/2.257, allocations: 1.015 MB / 0.9763 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/2.257, allocations: 0 / 0.9763 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.78e-05/2.257, allocations: 31.23 kB / 0.9763 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/2.257, allocations: 49.83 kB / 0.9763 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/2.259, allocations: 0.9002 MB / 0.9772 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007515/2.266, allocations: 4.018 MB / 0.9811 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/2.267, allocations: 0.6572 MB / 0.9818 GB, free: 139 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005422/2.268, allocations: 398.6 kB / 0.9822 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003268/2.271, allocations: 2.424 MB / 0.9845 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007316/2.272, allocations: 0.495 MB / 0.985 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.314e-06/2.272, allocations: 2.656 kB / 0.985 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.004319/2.276, allocations: 2.133 MB / 0.9871 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/2.276, allocations: 247.3 kB / 0.9873 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/2.278, allocations: 0.7338 MB / 0.988 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.887e-05/2.278, allocations: 37.39 kB / 0.9881 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003231/2.278, allocations: 419.6 kB / 0.9885 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/2.278, allocations: 175.1 kB / 0.9887 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/2.278, allocations: 18.06 kB / 0.9887 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001402/2.278, allocations: 335.5 kB / 0.989 GB, free: 134.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005639/2.279, allocations: 366.3 kB / 0.9893 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007585/2.28, allocations: 0.6021 MB / 0.9899 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006635/2.28, allocations: 460.4 kB / 0.9904 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/2.28, allocations: 3.906 kB / 0.9904 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002193/2.283, allocations: 1.275 MB / 0.9916 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001067/2.284, allocations: 2.468 MB / 0.994 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/2.284, allocations: 7.062 kB / 0.994 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/2.285, allocations: 342.9 kB / 0.9944 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006658/2.285, allocations: 145.5 kB / 0.9945 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/2.287, allocations: 1.446 MB / 0.9959 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009819/2.288, allocations: 48.11 kB / 0.996 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/2.288, allocations: 40.7 kB / 0.996 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/2.288, allocations: 8.719 kB / 0.996 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002229/2.29, allocations: 1.184 MB / 0.9972 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/2.29, allocations: 7.25 kB / 0.9972 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007947/2.291, allocations: 327.1 kB / 0.9975 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/2.292, allocations: 147.5 kB / 0.9976 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/2.293, allocations: 1.421 MB / 0.999 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009693/2.294, allocations: 60.69 kB / 0.9991 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/2.294, allocations: 41.72 kB / 0.9991 GB, free: 127.5 MB / 0.5261 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.0004556/2.295, allocations: 192.7 kB / 0.9993 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/2.295, allocations: 94.14 kB / 0.9994 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002682/2.298, allocations: 1.123 MB / 1 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/2.298, allocations: 7.656 kB / 1 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/2.298, allocations: 0 / 1 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/2.298, allocations: 3.891 kB / 1 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00417/2.302, allocations: 1.973 MB / 1.002 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/2.302, allocations: 11.59 kB / 1.002 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000422/2.302, allocations: 76.25 kB / 1.002 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009653/2.303, allocations: 329.5 kB / 1.003 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/2.303, allocations: 25.8 kB / 1.003 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0014/2.305, allocations: 1.43 MB / 1.004 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/2.305, allocations: 0 / 1.004 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002893/2.308, allocations: 1.615 MB / 1.006 GB, free: 124 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009011/2.309, allocations: 265.2 kB / 1.006 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004159/2.309, allocations: 15.47 kB / 1.006 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009382/2.31, allocations: 41.36 kB / 1.006 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/2.31, allocations: 53.48 kB / 1.006 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/2.31, allocations: 33.53 kB / 1.006 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001316/2.312, allocations: 0.569 MB / 1.007 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.71e-07/2.312, allocations: 0 / 1.007 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00325/2.315, allocations: 0.6885 MB / 1.007 GB, free: 123 MB / 0.5261 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.004654/2.32, allocations: 2.598 MB / 1.01 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002888/2.323, allocations: 1.55 MB / 1.011 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/2.323, allocations: 256 / 1.011 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008916/2.324, allocations: 0.49 MB / 1.012 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/2.325, allocations: 326.1 kB / 1.012 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00456/2.33, allocations: 1.667 MB / 1.014 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000551/2.33, allocations: 1.031 MB / 1.015 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00142/2.332, allocations: 386.2 kB / 1.015 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/2.332, allocations: 295.2 kB / 1.016 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.473e-06/2.332, allocations: 0 / 1.016 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0702/2.403, allocations: 31.65 MB / 1.046 GB, free: 83.21 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/2.403, allocations: 233.1 kB / 1.047 GB, free: 82.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.468/5.87, allocations: 0 / 1.047 GB, free: 82.9 MB / 0.5261 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