Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001012/0.001012, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0008408/0.0008408, allocations: 91.23 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.888e-05/1.901e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1711, allocations: 50.42 MB / 387.5 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3758/0.547, allocations: 82.24 MB / 469.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.5473, allocations: 75.95 kB / 469.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02139/0.5687, allocations: 8.264 MB / 478.1 MB, free: 4.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5688, allocations: 0 / 478.1 MB, free: 4.105 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.392e-05/0.5688, allocations: 8 kB / 478.1 MB, free: 4.098 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008459/0.5697, allocations: 0.6 MB / 478.7 MB, free: 3.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.5697, allocations: 8.031 kB / 478.7 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.872e-05/0.5698, allocations: 43.53 kB / 478.8 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006208/0.5704, allocations: 332.1 kB / 479.1 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.5705, allocations: 4 kB / 479.1 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.547e-05/0.5705, allocations: 12.69 kB / 479.1 MB, free: 3.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004265/0.571, allocations: 140.8 kB / 479.3 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004102/0.5714, allocations: 260.6 kB / 479.5 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.5714, allocations: 0 / 479.5 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.5715, allocations: 3.984 kB / 479.5 MB, free: 2.586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.5715, allocations: 12 kB / 479.5 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.573, allocations: 0.7313 MB / 480.3 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004427/0.5735, allocations: 191.3 kB / 480.5 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.5737, allocations: 76.84 kB / 480.5 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.5737, allocations: 4 kB / 480.5 MB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002518/0.574, allocations: 142.2 kB / 480.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.727e-06/0.574, allocations: 0 / 480.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006102/0.5746, allocations: 245.8 kB / 480.9 MB, free: 1.117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002068/0.5749, allocations: 312.4 kB / 481.2 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004355/0.5753, allocations: 362.1 kB / 481.6 MB, free: 388 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.5753, allocations: 25.7 kB / 481.6 MB, free: 356 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.5755, allocations: 196.5 kB / 481.8 MB, free: 156 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.908e-05/0.5756, allocations: 82.75 kB / 481.9 MB, free: 72 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.028e-05/0.5756, allocations: 0 / 481.9 MB, free: 72 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.5758, allocations: 350.8 kB / 482.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.5759, allocations: 56 kB / 482.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.5762, allocations: 168.2 kB / 482.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.5763, allocations: 77.95 kB / 482.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5764, allocations: 0 / 482.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004514/0.5768, allocations: 260.5 kB / 482.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.5768, allocations: 11.94 kB / 482.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.5769, allocations: 0 / 482.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.5771, allocations: 40.83 kB / 482.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.5775, allocations: 51.94 kB / 482.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.5789, allocations: 1.401 MB / 484.3 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.5791, allocations: 27.78 kB / 484.3 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.5791, allocations: 4 kB / 484.3 MB, free: 13.46 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.00019/0.5793, allocations: 123.5 kB / 484.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004292/0.5798, allocations: 249.3 kB / 484.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.372e-05/0.5798, allocations: 39.53 kB / 484.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006316/0.5805, allocations: 266.2 kB / 485 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.5805, allocations: 7.953 kB / 485 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.5805, allocations: 4 kB / 485 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004742/0.581, allocations: 0.5711 MB / 485.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008432/0.5819, allocations: 0.6811 MB / 486.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5819, allocations: 0 / 486.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.5821, allocations: 51.97 kB / 486.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.5821, allocations: 0 / 486.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.5821, allocations: 3.953 kB / 486.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-06/0.5821, allocations: 7.938 kB / 486.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5821, allocations: 4 kB / 486.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004905/0.5826, allocations: 395.8 kB / 486.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.5828, allocations: 148.5 kB / 486.8 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.924e-05/0.5829, allocations: 7.984 kB / 486.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.583, allocations: 7.953 kB / 486.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.5831, allocations: 15.92 kB / 486.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.5831, allocations: 12.14 kB / 486.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002913/0.5834, allocations: 284.5 kB / 487.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5834, allocations: 0 / 487.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000395/0.5838, allocations: 95.94 kB / 487.2 MB, free: 10.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001547/0.5854, allocations: 1.188 MB / 488.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005329/0.5859, allocations: 289.6 kB / 488.7 MB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5859, allocations: 0 / 488.7 MB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.5861, allocations: 83.86 kB / 488.8 MB, free: 8.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.5866, allocations: 101.3 kB / 488.9 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.588, allocations: 0.6275 MB / 489.5 MB, free: 8.043 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004973/0.5885, allocations: 0.8068 MB / 490.3 MB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.5887, allocations: 47.27 kB / 490.4 MB, free: 7.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.5889, allocations: 119.4 kB / 490.5 MB, free: 7.043 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5889, allocations: 0 / 490.5 MB, free: 7.043 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.622, allocations: 8.266 MB / 498.7 MB, free: 14.87 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002441/0.6223, allocations: 174.8 kB / 498.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.187/2.809, allocations: 4.031 kB / 498.9 MB, free: 14.67 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat