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.001055/0.001055, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.323/1.323, allocations: 223.2 MB / 241 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009545/0.0009545, allocations: 98.39 kB / 292.1 MB, free: 10.71 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.3762/0.3762, allocations: 44.21 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003528, allocations: 16 kB / 460 MB, free: 1.676 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4229/0.4233, allocations: 61.89 MB / 0.5096 GB, free: 37.77 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6779/1.101, allocations: 336.5 MB / 0.8383 GB, free: 9.852 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/1.102, allocations: 96.42 kB / 0.8384 GB, free: 9.801 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.6471/1.749, allocations: 146.5 MB / 0.9814 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.264e-06/1.749, allocations: 0 / 0.9814 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001394/1.749, allocations: 23.98 kB / 0.9815 GB, free: 119.5 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.005083/1.754, allocations: 1.283 MB / 0.9827 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.263e-05/1.754, allocations: 8.031 kB / 0.9827 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005347/1.755, allocations: 122.4 kB / 0.9828 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004997/1.755, allocations: 107.3 kB / 0.9829 GB, free: 118 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/1.757, allocations: 0.6868 MB / 0.9836 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/1.757, allocations: 108.7 kB / 0.9837 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/1.757, allocations: 59.98 kB / 0.9838 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/1.759, allocations: 1.024 MB / 0.9848 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/1.759, allocations: 3.938 kB / 0.9848 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.523e-05/1.759, allocations: 27.98 kB / 0.9848 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.692e-05/1.759, allocations: 53.28 kB / 0.9848 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/1.76, allocations: 0.9146 MB / 0.9857 GB, free: 115 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005627/1.766, allocations: 4.007 MB / 0.9897 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008835/1.767, allocations: 0.6571 MB / 0.9903 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003018/1.77, allocations: 2.369 MB / 0.9926 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006723/1.771, allocations: 0.4953 MB / 0.9931 GB, free: 107 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.725e-06/1.771, allocations: 0 / 0.9931 GB, free: 107 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005583/1.776, allocations: 2.798 MB / 0.9958 GB, free: 104 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/1.776, allocations: 239.8 kB / 0.9961 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/1.777, allocations: 0.7462 MB / 0.9968 GB, free: 103 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/1.778, allocations: 37.7 kB / 0.9968 GB, free: 103 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/1.778, allocations: 423.7 kB / 0.9972 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/1.778, allocations: 181.5 kB / 0.9974 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.975e-05/1.778, allocations: 16 kB / 0.9974 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.778, allocations: 334 kB / 0.9977 GB, free: 102 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/1.779, allocations: 369.8 kB / 0.9981 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006563/1.779, allocations: 0.6174 MB / 0.9987 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008144/1.78, allocations: 451.7 kB / 0.9991 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/1.78, allocations: 4 kB / 0.9991 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002073/1.782, allocations: 1.298 MB / 1 GB, free: 99.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009286/1.783, allocations: 2.478 MB / 1.003 GB, free: 96.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/1.783, allocations: 8 kB / 1.003 GB, free: 96.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/1.784, allocations: 341.5 kB / 1.003 GB, free: 96.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005807/1.785, allocations: 151.7 kB / 1.003 GB, free: 95.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/1.786, allocations: 1.44 MB / 1.005 GB, free: 94.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009306/1.787, allocations: 48.09 kB / 1.005 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.19e-05/1.787, allocations: 44.03 kB / 1.005 GB, free: 94.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/1.787, allocations: 4 kB / 1.005 GB, free: 94.4 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001836/1.789, allocations: 1.207 MB / 1.006 GB, free: 93.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/1.789, allocations: 4 kB / 1.006 GB, free: 93.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007092/1.79, allocations: 325.6 kB / 1.006 GB, free: 92.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005404/1.79, allocations: 147.8 kB / 1.006 GB, free: 92.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009527/1.791, allocations: 1.425 MB / 1.008 GB, free: 91.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008819/1.792, allocations: 55.94 kB / 1.008 GB, free: 91.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.89e-05/1.792, allocations: 39.98 kB / 1.008 GB, free: 91.14 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 () * 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.0006018/1.793, allocations: 403.5 kB / 1.008 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/1.793, allocations: 86.97 kB / 1.008 GB, free: 90.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/1.795, allocations: 1.134 MB / 1.009 GB, free: 89.49 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/1.795, allocations: 4.125 kB / 1.009 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/1.795, allocations: 4 kB / 1.009 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/1.795, allocations: 7.938 kB / 1.009 GB, free: 89.47 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/1.798, allocations: 1.989 MB / 1.011 GB, free: 87.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/1.798, allocations: 0 / 1.011 GB, free: 87.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004315/1.798, allocations: 83.89 kB / 1.012 GB, free: 87.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008012/1.799, allocations: 337.5 kB / 1.012 GB, free: 86.99 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/1.799, allocations: 23.97 kB / 1.012 GB, free: 86.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/1.8, allocations: 1.425 MB / 1.013 GB, free: 85.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/1.8, allocations: 0 / 1.013 GB, free: 85.49 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/1.802, allocations: 1.622 MB / 1.015 GB, free: 83.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000645/1.803, allocations: 264 kB / 1.015 GB, free: 83.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/1.803, allocations: 15.95 kB / 1.015 GB, free: 83.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006727/1.804, allocations: 48 kB / 1.015 GB, free: 83.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/1.804, allocations: 56.34 kB / 1.015 GB, free: 83.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.919e-05/1.804, allocations: 27.98 kB / 1.015 GB, free: 83.42 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008113/1.805, allocations: 0.5809 MB / 1.016 GB, free: 82.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/1.805, allocations: 0 / 1.016 GB, free: 82.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002445/1.807, allocations: 0.6946 MB / 1.016 GB, free: 82.15 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) * 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.004031/1.811, allocations: 2.618 MB / 1.019 GB, free: 79.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00291/1.814, allocations: 1.537 MB / 1.021 GB, free: 77.95 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.814, allocations: 12 kB / 1.021 GB, free: 77.93 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000899/1.815, allocations: 493.8 kB / 1.021 GB, free: 77.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/1.817, allocations: 330.9 kB / 1.021 GB, free: 77.12 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005771/1.823, allocations: 6.988 MB / 1.028 GB, free: 69.96 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/1.823, allocations: 1.029 MB / 1.029 GB, free: 68.91 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001194/1.824, allocations: 314.4 kB / 1.029 GB, free: 68.59 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/1.825, allocations: 303.3 kB / 1.03 GB, free: 68.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.973e-06/1.825, allocations: 0 / 1.03 GB, free: 68.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05291/1.878, allocations: 30.05 MB / 1.059 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/1.878, allocations: 268.7 kB / 1.059 GB, free: 38.22 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.336/5.214, allocations: 4 kB / 1.059 GB, free: 38.21 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