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.0009798/0.0009798, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.405/1.405, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.000837/0.0008371, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.043e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0796/0.07964, allocations: 47.58 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2849/0.3646, allocations: 83.12 MB / 453.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.3649, allocations: 82.05 kB / 453.3 MB, free: 10.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03495/0.3998, allocations: 8.282 MB / 461.6 MB, free: 3.215 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3999, allocations: 0 / 461.6 MB, free: 3.215 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.753e-05/0.3999, allocations: 16 kB / 461.6 MB, free: 3.199 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.001113/0.4011, allocations: 0.5912 MB / 462.2 MB, free: 2.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.4011, allocations: 8.031 kB / 462.2 MB, free: 2.582 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001239/0.4013, allocations: 55.48 kB / 462.3 MB, free: 2.531 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.4014, allocations: 47.44 kB / 462.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007189/0.4021, allocations: 345.8 kB / 462.6 MB, free: 2.133 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.4022, allocations: 14.94 kB / 462.7 MB, free: 2.125 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/0.4023, allocations: 22.12 kB / 462.7 MB, free: 2.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006925/0.403, allocations: 295.1 kB / 463 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.403, allocations: 0 / 463 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/0.403, allocations: 12 kB / 463 MB, free: 1.773 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.4031, allocations: 4 kB / 463 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004748/0.4036, allocations: 153.7 kB / 463.1 MB, free: 1.617 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.4057, allocations: 0.8054 MB / 463.9 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007534/0.4064, allocations: 207.3 kB / 464.1 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.4067, allocations: 76.84 kB / 464.2 MB, free: 476 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.4067, allocations: 4 kB / 464.2 MB, free: 472 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.4071, allocations: 139.6 kB / 464.4 MB, free: 320 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.535e-06/0.4071, allocations: 0 / 464.4 MB, free: 320 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008887/0.408, allocations: 261.8 kB / 464.6 MB, free: 48 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002443/0.4083, allocations: 324.4 kB / 464.9 MB, free: 15.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007373/0.409, allocations: 378.9 kB / 465.3 MB, free: 15.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.4091, allocations: 29.7 kB / 465.3 MB, free: 15.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.4093, allocations: 212.4 kB / 465.5 MB, free: 15.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.4095, allocations: 78.84 kB / 465.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.4095, allocations: 8 kB / 465.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.4097, allocations: 346.8 kB / 466 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.4099, allocations: 67.98 kB / 466 MB, free: 14.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.4103, allocations: 168.2 kB / 466.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.4106, allocations: 92.44 kB / 466.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.4106, allocations: 0 / 466.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008391/0.4114, allocations: 292.3 kB / 466.6 MB, free: 13.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.4115, allocations: 8 kB / 466.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4115, allocations: 4.094 kB / 466.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003005/0.4118, allocations: 44.83 kB / 466.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003455/0.4122, allocations: 48.02 kB / 466.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.4141, allocations: 1.456 MB / 468.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.4144, allocations: 28.02 kB / 468.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.322e-05/0.4144, allocations: 15.95 kB / 468.2 MB, free: 12.2 MB / 346.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 () * 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.0001466/0.4146, allocations: 121.8 kB / 468.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.434e-05/0.4147, allocations: 43.52 kB / 468.3 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008424/0.4156, allocations: 287.4 kB / 468.6 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.4156, allocations: 4 kB / 468.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.4156, allocations: 0 / 468.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007426/0.4163, allocations: 0.5947 MB / 469.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.4178, allocations: 0.7392 MB / 470 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4178, allocations: 0 / 470 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003522/0.4181, allocations: 47.97 kB / 470 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.4182, allocations: 7.938 kB / 470 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.4182, allocations: 8 kB / 470 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4182, allocations: 0 / 470 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4182, allocations: 0 / 470 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008302/0.4191, allocations: 418.8 kB / 470.4 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.4193, allocations: 152.5 kB / 470.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.846e-05/0.4194, allocations: 8 kB / 470.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002986/0.4197, allocations: 16.06 kB / 470.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.297e-05/0.4198, allocations: 11.97 kB / 470.6 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.228e-05/0.4199, allocations: 12 kB / 470.6 MB, free: 9.527 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005666/0.4204, allocations: 305.2 kB / 470.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4205, allocations: 0 / 470.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006444/0.4211, allocations: 115.9 kB / 471 MB, free: 9.117 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.002388/0.4235, allocations: 1.251 MB / 472.3 MB, free: 7.852 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000751/0.4243, allocations: 306.5 kB / 472.6 MB, free: 7.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4243, allocations: 0 / 472.6 MB, free: 7.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.4245, allocations: 91.86 kB / 472.7 MB, free: 7.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.4251, allocations: 113.7 kB / 472.8 MB, free: 7.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.4265, allocations: 0.6532 MB / 473.4 MB, free: 6.648 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.427, allocations: 0.8079 MB / 474.2 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001838/0.4271, allocations: 46.95 kB / 474.3 MB, free: 5.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/0.4274, allocations: 127.4 kB / 474.4 MB, free: 5.645 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4274, allocations: 0 / 474.4 MB, free: 5.645 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.4513, allocations: 9.324 MB / 483.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/0.4516, allocations: 222 kB / 484 MB, free: 12.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.529, allocations: 0 / 484 MB, free: 12.07 MB / 362.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