Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_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.001348/0.001348, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.813/1.813, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009714/0.0009712, allocations: 86.38 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.911e-05/1.913e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5335, allocations: 82.7 MB / 445.9 MB, free: 12.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.5339, allocations: 78.27 kB / 445.9 MB, free: 12.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02283/0.5568, allocations: 8.201 MB / 454.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5568, allocations: 0 / 454.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.82e-05/0.5569, allocations: 12 kB / 454.2 MB, free: 6.207 MB / 330.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.0009155/0.5578, allocations: 0.592 MB / 454.7 MB, free: 5.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.5579, allocations: 12.03 kB / 454.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.515e-05/0.558, allocations: 43.53 kB / 454.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005571/0.5585, allocations: 333.6 kB / 455.1 MB, free: 5.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.5586, allocations: 8 kB / 455.1 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.945e-05/0.5586, allocations: 12 kB / 455.1 MB, free: 5.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002595/0.5589, allocations: 139.8 kB / 455.3 MB, free: 5.094 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.5593, allocations: 260.1 kB / 455.5 MB, free: 4.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.5593, allocations: 3.906 kB / 455.5 MB, free: 4.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.5593, allocations: 0 / 455.5 MB, free: 4.848 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.5593, allocations: 8 kB / 455.5 MB, free: 4.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.5606, allocations: 0.7384 MB / 456.3 MB, free: 4.207 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/0.561, allocations: 195.3 kB / 456.5 MB, free: 4.062 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.5612, allocations: 72.61 kB / 456.5 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.5612, allocations: 4 kB / 456.5 MB, free: 4.012 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.5614, allocations: 131.6 kB / 456.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.5614, allocations: 0 / 456.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005009/0.5619, allocations: 253.5 kB / 456.9 MB, free: 3.691 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.5621, allocations: 316.2 kB / 457.2 MB, free: 3.312 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.5624, allocations: 357.6 kB / 457.6 MB, free: 3.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.5625, allocations: 25.7 kB / 457.6 MB, free: 3.008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.5626, allocations: 202.1 kB / 457.8 MB, free: 2.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.856e-05/0.5627, allocations: 81.66 kB / 457.9 MB, free: 2.793 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-06/0.5627, allocations: 0 / 457.9 MB, free: 2.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.5628, allocations: 344.3 kB / 458.2 MB, free: 2.461 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.531e-05/0.5629, allocations: 60.86 kB / 458.3 MB, free: 2.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.5631, allocations: 163.8 kB / 458.4 MB, free: 2.254 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.5632, allocations: 74.89 kB / 458.5 MB, free: 2.207 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5632, allocations: 0 / 458.5 MB, free: 2.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004216/0.5637, allocations: 275.3 kB / 458.8 MB, free: 1.984 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.5637, allocations: 15.88 kB / 458.8 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.5637, allocations: 0 / 458.8 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001736/0.5639, allocations: 35.84 kB / 458.8 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.5641, allocations: 47.97 kB / 458.9 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.5652, allocations: 1.409 MB / 460.3 MB, free: 484 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.5654, allocations: 19.75 kB / 460.3 MB, free: 464 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.5654, allocations: 11.66 kB / 460.3 MB, free: 456 kB / 330.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.0001353/0.5656, allocations: 120.9 kB / 460.4 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000402/0.566, allocations: 247.6 kB / 460.7 MB, free: 120 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.963e-05/0.5661, allocations: 35.62 kB / 460.7 MB, free: 84 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004624/0.5665, allocations: 267.7 kB / 461 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.5665, allocations: 0 / 461 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.5666, allocations: 8 kB / 461 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004193/0.567, allocations: 0.5711 MB / 461.6 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008066/0.5678, allocations: 0.6916 MB / 462.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.5678, allocations: 0 / 462.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002125/0.568, allocations: 47.22 kB / 462.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.568, allocations: 4 kB / 462.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.5681, allocations: 0 / 462.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5681, allocations: 3.938 kB / 462.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5681, allocations: 4 kB / 462.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004764/0.5686, allocations: 398.9 kB / 462.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.5687, allocations: 147.5 kB / 462.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.616e-05/0.5688, allocations: 0 / 462.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.569, allocations: 11.98 kB / 462.8 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.569, allocations: 15.61 kB / 462.9 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.569, allocations: 4 kB / 462.9 MB, free: 14.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002646/0.5693, allocations: 282.1 kB / 463.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5693, allocations: 0 / 463.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003824/0.5697, allocations: 99.27 kB / 463.2 MB, free: 13.76 MB / 346.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.001421/0.5711, allocations: 1.198 MB / 464.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004969/0.5716, allocations: 292 kB / 464.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5717, allocations: 0 / 464.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.5718, allocations: 89.48 kB / 464.8 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.5723, allocations: 81.55 kB / 464.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.5735, allocations: 0.6312 MB / 465.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.5739, allocations: 0.8063 MB / 466.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001577/0.574, allocations: 47.27 kB / 466.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.5742, allocations: 123 kB / 466.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of SimCode: time 4.2e-07/0.5742, allocations: 0 / 466.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.6042, allocations: 8.271 MB / 474.8 MB, free: 2.445 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.6044, allocations: 178.2 kB / 474.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.181/2.786, allocations: 4.031 kB / 474.9 MB, free: 2.242 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat