Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000867/0.0008669, allocations: 90.45 kB / 292.1 MB, free: 6.039 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1856/0.1856, allocations: 45.14 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.117e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 63.25 MB / 0.5115 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8544/0.9663, allocations: 337.5 MB / 0.841 GB, free: 104 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.9666, allocations: 83.52 kB / 0.8411 GB, free: 104 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.5788/1.545, allocations: 145.8 MB / 0.9835 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.202e-06/1.545, allocations: 3.812 kB / 0.9835 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.484e-05/1.546, allocations: 26.47 kB / 0.9836 GB, free: 133.6 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.003218/1.549, allocations: 1.189 MB / 0.9847 GB, free: 133 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/1.549, allocations: 7.875 kB / 0.9847 GB, free: 133 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003351/1.549, allocations: 108.6 kB / 0.9848 GB, free: 132.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006018/1.55, allocations: 111.4 kB / 0.9849 GB, free: 132.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001605/1.551, allocations: 0.6729 MB / 0.9856 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/1.552, allocations: 112.2 kB / 0.9857 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001813/1.552, allocations: 61.44 kB / 0.9858 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/1.553, allocations: 1.019 MB / 0.9868 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/1.553, allocations: 2.938 kB / 0.9868 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/1.553, allocations: 24.66 kB / 0.9868 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-05/1.554, allocations: 51.75 kB / 0.9868 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/1.555, allocations: 0.9007 MB / 0.9877 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005563/1.56, allocations: 4.011 MB / 0.9916 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008483/1.561, allocations: 0.6469 MB / 0.9923 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004764/1.562, allocations: 408.9 kB / 0.9927 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0026/1.564, allocations: 2.419 MB / 0.995 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005857/1.565, allocations: 499.6 kB / 0.9955 GB, free: 129 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.184e-06/1.565, allocations: 3.281 kB / 0.9955 GB, free: 129 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.003299/1.568, allocations: 2.14 MB / 0.9976 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/1.568, allocations: 243.3 kB / 0.9978 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007203/1.569, allocations: 0.7418 MB / 0.9985 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.718e-05/1.569, allocations: 40.05 kB / 0.9986 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000209/1.569, allocations: 427.5 kB / 0.999 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/1.57, allocations: 174.6 kB / 0.9992 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-05/1.57, allocations: 15.91 kB / 0.9992 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.337e-05/1.57, allocations: 335.9 kB / 0.9995 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000451/1.57, allocations: 367.3 kB / 0.9998 GB, free: 127 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005448/1.571, allocations: 0.5998 MB / 1 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005197/1.571, allocations: 454.8 kB / 1.001 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.571, allocations: 2.469 kB / 1.001 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001673/1.573, allocations: 1.271 MB / 1.002 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004257/1.573, allocations: 2.482 MB / 1.005 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/1.573, allocations: 3.875 kB / 1.005 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007758/1.574, allocations: 338.1 kB / 1.005 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/1.575, allocations: 146.3 kB / 1.005 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009318/1.576, allocations: 1.444 MB / 1.006 GB, free: 122 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006555/1.576, allocations: 57.03 kB / 1.006 GB, free: 122 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.836e-05/1.576, allocations: 43.14 kB / 1.007 GB, free: 122 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.576e-06/1.576, allocations: 3.938 kB / 1.007 GB, free: 122 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001627/1.578, allocations: 1.18 MB / 1.008 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.578, allocations: 7.375 kB / 1.008 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006143/1.579, allocations: 324.3 kB / 1.008 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/1.579, allocations: 151.4 kB / 1.008 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008524/1.58, allocations: 1.424 MB / 1.01 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000607/1.581, allocations: 41.95 kB / 1.01 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.168e-05/1.581, allocations: 42.42 kB / 1.01 GB, free: 120.3 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.0002313/1.581, allocations: 198.5 kB / 1.01 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/1.581, allocations: 92.72 kB / 1.01 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/1.583, allocations: 1.14 MB / 1.011 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/1.583, allocations: 3.75 kB / 1.011 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.583, allocations: 0 / 1.011 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/1.583, allocations: 7 kB / 1.011 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/1.585, allocations: 1.982 MB / 1.013 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/1.585, allocations: 3.188 kB / 1.013 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003599/1.586, allocations: 78.2 kB / 1.013 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007084/1.587, allocations: 332.2 kB / 1.013 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-05/1.587, allocations: 15.25 kB / 1.013 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/1.587, allocations: 1.436 MB / 1.015 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.587, allocations: 3.781 kB / 1.015 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/1.589, allocations: 1.602 MB / 1.016 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004122/1.59, allocations: 266.4 kB / 1.017 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/1.59, allocations: 19.14 kB / 1.017 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/1.59, allocations: 44.41 kB / 1.017 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/1.591, allocations: 53.27 kB / 1.017 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.137e-05/1.591, allocations: 26.97 kB / 1.017 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005811/1.591, allocations: 0.5711 MB / 1.017 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.51e-07/1.591, allocations: 0 / 1.017 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00174/1.593, allocations: 0.7046 MB / 1.018 GB, free: 116.2 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.003175/1.596, allocations: 2.605 MB / 1.02 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002619/1.599, allocations: 1.55 MB / 1.022 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.599, allocations: 0 / 1.022 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008245/1.6, allocations: 0.4884 MB / 1.022 GB, free: 114 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/1.601, allocations: 328.4 kB / 1.023 GB, free: 114 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/1.604, allocations: 1.664 MB / 1.024 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/1.604, allocations: 1.028 MB / 1.025 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001103/1.605, allocations: 394.1 kB / 1.026 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002966/1.606, allocations: 292.8 kB / 1.026 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of SimCode: time 5.41e-07/1.606, allocations: 0 / 1.026 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04395/1.65, allocations: 31.7 MB / 1.057 GB, free: 95.35 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/1.65, allocations: 228.4 kB / 1.057 GB, free: 95.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.968/4.618, allocations: 3.938 kB / 1.057 GB, free: 95.1 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat does not exist to compare? outputFormat=mat