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.001013/0.001013, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.379/1.379, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008074/0.0008074, allocations: 92.09 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002683, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2498, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3535, allocations: 83.22 MB / 459.1 MB, free: 13.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.3538, allocations: 83.84 kB / 459.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02153/0.3753, allocations: 8.31 MB / 467.5 MB, free: 4.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3754, allocations: 0 / 467.5 MB, free: 4.996 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.3754, allocations: 12 kB / 467.5 MB, free: 4.984 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.000953/0.3764, allocations: 0.6656 MB / 468.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3765, allocations: 8.031 kB / 468.2 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.3766, allocations: 58.89 kB / 468.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.697e-05/0.3767, allocations: 43.53 kB / 468.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.3772, allocations: 338.3 kB / 468.6 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.3772, allocations: 20.44 kB / 468.6 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.3772, allocations: 20 kB / 468.7 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004461/0.3777, allocations: 297.7 kB / 469 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3777, allocations: 7.844 kB / 469 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.3777, allocations: 12 kB / 469 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3778, allocations: 4 kB / 469 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002865/0.378, allocations: 157.7 kB / 469.1 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.3793, allocations: 0.8055 MB / 469.9 MB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/0.3798, allocations: 221.8 kB / 470.2 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.3798, allocations: 4 kB / 470.2 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.3801, allocations: 139.6 kB / 470.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.3801, allocations: 0 / 470.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008162/0.3809, allocations: 419.3 kB / 470.7 MB, free: 1.555 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.3811, allocations: 320.4 kB / 471 MB, free: 1.168 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004264/0.3815, allocations: 392.6 kB / 471.4 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.3815, allocations: 33.7 kB / 471.4 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.3817, allocations: 196.4 kB / 471.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.346e-05/0.3818, allocations: 86.73 kB / 471.7 MB, free: 468 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.3818, allocations: 7.938 kB / 471.7 MB, free: 460 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3819, allocations: 354.8 kB / 472.1 MB, free: 96 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.3821, allocations: 67.95 kB / 472.1 MB, free: 28 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.3823, allocations: 176.2 kB / 472.3 MB, free: 15.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.3825, allocations: 89.14 kB / 472.4 MB, free: 15.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3825, allocations: 0 / 472.4 MB, free: 15.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004392/0.3829, allocations: 284.5 kB / 472.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.383, allocations: 4.188 kB / 472.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.383, allocations: 7.938 kB / 472.7 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.3831, allocations: 32.84 kB / 472.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.3833, allocations: 55.91 kB / 472.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.3847, allocations: 1.468 MB / 474.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.3849, allocations: 31.73 kB / 474.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.3849, allocations: 4.094 kB / 474.3 MB, free: 13.7 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.0001888/0.3851, allocations: 176.2 kB / 474.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.508e-05/0.3852, allocations: 39.53 kB / 474.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005133/0.3857, allocations: 280 kB / 474.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.3857, allocations: 4 kB / 474.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.3857, allocations: 0 / 474.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005445/0.3863, allocations: 0.6024 MB / 475.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009886/0.3873, allocations: 0.743 MB / 476.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3873, allocations: 0 / 476.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.3875, allocations: 55.91 kB / 476.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3875, allocations: 0 / 476.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.3876, allocations: 8 kB / 476.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3876, allocations: 3.953 kB / 476.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3876, allocations: 0 / 476.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006006/0.3882, allocations: 430.8 kB / 476.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.3884, allocations: 144.6 kB / 476.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.3884, allocations: 11.98 kB / 476.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.3886, allocations: 12.06 kB / 476.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.3887, allocations: 15.94 kB / 476.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.3887, allocations: 15.98 kB / 476.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000334/0.3891, allocations: 307.1 kB / 477.1 MB, free: 10.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.533e-06/0.3891, allocations: 0 / 477.1 MB, free: 10.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004168/0.3895, allocations: 115.8 kB / 477.2 MB, free: 10.55 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.00177/0.3913, allocations: 1.29 MB / 478.5 MB, free: 9.266 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005977/0.3919, allocations: 318.5 kB / 478.8 MB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.3919, allocations: 192 / 478.8 MB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.3921, allocations: 95.84 kB / 478.9 MB, free: 8.848 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.3926, allocations: 97.94 kB / 479 MB, free: 8.754 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.396, allocations: 2.67 MB / 481.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004353/0.3964, allocations: 0.804 MB / 482.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002204/0.3966, allocations: 46.95 kB / 482.5 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/0.3968, allocations: 127.3 kB / 482.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of SimCode: time 3.456e-06/0.3968, allocations: 0 / 482.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.4228, allocations: 9.398 MB / 492 MB, free: 11.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.423, allocations: 246.6 kB / 492.3 MB, free: 11.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.59, allocations: 0 / 492.3 MB, free: 11.27 MB / 378.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