Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001672/0.001676, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.938/1.938, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001172/0.001171, allocations: 87.47 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004242/0.0004241, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3364, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.4693, allocations: 83.22 MB / 457.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.4697, allocations: 83.91 kB / 457.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03704/0.5067, allocations: 8.305 MB / 466.2 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5068, allocations: 0 / 466.2 MB, free: 5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.493e-05/0.5068, allocations: 12 kB / 466.3 MB, free: 4.988 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.001431/0.5083, allocations: 0.6577 MB / 466.9 MB, free: 4.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.5084, allocations: 8.031 kB / 466.9 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001634/0.5085, allocations: 74.88 kB / 467 MB, free: 4.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.5087, allocations: 43.53 kB / 467 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007537/0.5094, allocations: 334.3 kB / 467.4 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.5095, allocations: 16.44 kB / 467.4 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.5096, allocations: 20 kB / 467.4 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007147/0.5103, allocations: 293.7 kB / 467.7 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.5103, allocations: 11.83 kB / 467.7 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.5104, allocations: 15.94 kB / 467.7 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.5104, allocations: 4 kB / 467.7 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004934/0.5109, allocations: 157.7 kB / 467.9 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.5131, allocations: 0.7938 MB / 468.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008267/0.514, allocations: 219.3 kB / 468.9 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.5141, allocations: 4 kB / 468.9 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004112/0.5145, allocations: 154.1 kB / 469 MB, free: 1.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.276e-06/0.5145, allocations: 0 / 469 MB, free: 1.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001376/0.5159, allocations: 411.5 kB / 469.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001818/0.5161, allocations: 316.4 kB / 469.7 MB, free: 1.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007692/0.5169, allocations: 396.6 kB / 470.1 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.415e-05/0.517, allocations: 33.7 kB / 470.2 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.5172, allocations: 242.9 kB / 470.4 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.5173, allocations: 86.73 kB / 470.5 MB, free: 432 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.5173, allocations: 7.938 kB / 470.5 MB, free: 424 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5175, allocations: 318.8 kB / 470.8 MB, free: 96 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.5177, allocations: 67.95 kB / 470.9 MB, free: 28 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003844/0.5181, allocations: 184.1 kB / 471 MB, free: 15.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002974/0.5184, allocations: 77.17 kB / 471.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.5185, allocations: 0 / 471.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008004/0.5193, allocations: 260.8 kB / 471.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.5193, allocations: 4 kB / 471.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.5193, allocations: 0 / 471.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.5195, allocations: 36.83 kB / 471.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004423/0.52, allocations: 55.92 kB / 471.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002144/0.5221, allocations: 1.464 MB / 472.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.5226, allocations: 31.77 kB / 473 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.5226, allocations: 12 kB / 473 MB, free: 13.73 MB / 362.7 MB 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 () * Number of clocked 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.0003386/0.523, allocations: 172.2 kB / 473.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.5231, allocations: 39.53 kB / 473.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008964/0.524, allocations: 276.2 kB / 473.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.524, allocations: 4 kB / 473.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5241, allocations: 0 / 473.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008368/0.5249, allocations: 0.5985 MB / 474.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.5266, allocations: 0.7473 MB / 474.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5267, allocations: 0 / 474.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004253/0.5271, allocations: 55.91 kB / 474.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.5271, allocations: 3.984 kB / 474.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.5272, allocations: 11.98 kB / 474.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.486e-06/0.5272, allocations: 3.953 kB / 474.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5272, allocations: 96 / 474.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.5283, allocations: 430.8 kB / 475.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002846/0.5286, allocations: 148.6 kB / 475.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/0.5287, allocations: 8 kB / 475.5 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.5291, allocations: 8 kB / 475.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.931e-05/0.5292, allocations: 23.92 kB / 475.5 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.5292, allocations: 12 kB / 475.5 MB, free: 10.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005771/0.5298, allocations: 307.1 kB / 475.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.134e-06/0.5298, allocations: 0 / 475.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006336/0.5304, allocations: 127.8 kB / 475.9 MB, free: 10.57 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) * Number of clocked states: 0 () * 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.002592/0.5331, allocations: 1.276 MB / 477.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.5341, allocations: 326.5 kB / 477.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.5342, allocations: 0 / 477.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002917/0.5345, allocations: 91.84 kB / 477.6 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008313/0.5353, allocations: 98.34 kB / 477.7 MB, free: 8.781 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005423/0.5408, allocations: 2.703 MB / 480.4 MB, free: 6.008 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.5413, allocations: 0.8079 MB / 481.2 MB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003263/0.5416, allocations: 127.4 kB / 481.3 MB, free: 5.047 MB / 362.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5416, allocations: 7.875 kB / 481.3 MB, free: 5.039 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.96/3.501, allocations: 7.567 MB / 488.9 MB, free: 13.46 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat