Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",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.001075/0.001076, allocations: 171.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.387/1.387, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008082/0.0008082, allocations: 86.7 kB / 268 MB, free: 14.06 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.295e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08247/0.08252, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2555/0.3381, allocations: 79.92 MB / 450 MB, free: 13.35 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001719/0.3383, allocations: 74.58 kB / 450.1 MB, free: 13.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01525/0.3536, allocations: 6.146 MB / 456.2 MB, free: 8.152 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3536, allocations: 0 / 456.2 MB, free: 8.152 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.3536, allocations: 12.7 kB / 456.3 MB, free: 8.141 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008044/0.3544, allocations: 0.5734 MB / 456.8 MB, free: 7.539 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.3545, allocations: 12.03 kB / 456.8 MB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.152e-05/0.3546, allocations: 65.56 kB / 456.9 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.578e-05/0.3547, allocations: 39.53 kB / 456.9 MB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.355, allocations: 294.2 kB / 457.2 MB, free: 7.129 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.3552, allocations: 61.59 kB / 457.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.3552, allocations: 23.25 kB / 457.3 MB, free: 7.055 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/0.3557, allocations: 311.6 kB / 457.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3557, allocations: 4 kB / 457.6 MB, free: 6.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.3557, allocations: 11.38 kB / 457.6 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.3557, allocations: 4 kB / 457.6 MB, free: 6.777 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.356, allocations: 179.8 kB / 457.8 MB, free: 6.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.3574, allocations: 0.8312 MB / 458.6 MB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005041/0.3579, allocations: 260.9 kB / 458.9 MB, free: 5.785 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.3581, allocations: 111.3 kB / 459 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.3581, allocations: 8 kB / 459 MB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.3581, allocations: 46.5 kB / 459.1 MB, free: 5.629 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.462e-06/0.3581, allocations: 0 / 459.1 MB, free: 5.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005742/0.3587, allocations: 283.1 kB / 459.3 MB, free: 5.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.3588, allocations: 324.4 kB / 459.7 MB, free: 4.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.3591, allocations: 239.5 kB / 459.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.3591, allocations: 33.7 kB / 459.9 MB, free: 4.676 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.3592, allocations: 180.4 kB / 460.1 MB, free: 4.492 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.228e-05/0.3593, allocations: 106.4 kB / 460.2 MB, free: 4.387 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.742e-05/0.3593, allocations: 8 kB / 460.2 MB, free: 4.379 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.3595, allocations: 342.8 kB / 460.5 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.3596, allocations: 76 kB / 460.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.3598, allocations: 196.7 kB / 460.8 MB, free: 3.723 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.36, allocations: 129.4 kB / 460.9 MB, free: 3.594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.36, allocations: 0 / 460.9 MB, free: 3.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005484/0.3606, allocations: 361.8 kB / 461.3 MB, free: 3.227 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.3606, allocations: 37.69 kB / 461.3 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3606, allocations: 0 / 461.3 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001968/0.3608, allocations: 36.84 kB / 461.4 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009886/0.3618, allocations: 211.8 kB / 461.6 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.3649, allocations: 2.938 MB / 464.5 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.3652, allocations: 47.73 kB / 464.6 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.3652, allocations: 12 kB / 464.6 MB, free: 15.68 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.3654, allocations: 124.9 kB / 464.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-05/0.3654, allocations: 31.72 kB / 464.7 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.268e-05/0.3655, allocations: 43.14 kB / 464.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.3655, allocations: 4 kB / 464.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.3655, allocations: 4 kB / 464.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006339/0.3662, allocations: 0.6464 MB / 465.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.3666, allocations: 389.2 kB / 465.8 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3666, allocations: 0 / 465.8 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.3679, allocations: 247.8 kB / 466 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-05/0.368, allocations: 32.84 kB / 466.1 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.368, allocations: 4 kB / 466.1 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.3705, allocations: 2.785 MB / 468.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3705, allocations: 0 / 468.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.3711, allocations: 491.9 kB / 469.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.3713, allocations: 140.6 kB / 469.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.3714, allocations: 8 kB / 469.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.3716, allocations: 20.06 kB / 469.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.3716, allocations: 23.95 kB / 469.5 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3717, allocations: 12 kB / 469.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001964/0.3719, allocations: 195.1 kB / 469.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3719, allocations: 0 / 469.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004007/0.3723, allocations: 115.8 kB / 469.8 MB, free: 9.922 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00094/0.3732, allocations: 1.053 MB / 470.9 MB, free: 8.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.3745, allocations: 0.5295 MB / 471.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3745, allocations: 0 / 471.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.3757, allocations: 422.3 kB / 471.8 MB, free: 7.859 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.3761, allocations: 82.02 kB / 471.9 MB, free: 7.781 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.3776, allocations: 0.7493 MB / 472.7 MB, free: 6.992 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.3779, allocations: 0.7879 MB / 473.5 MB, free: 6.176 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.3781, allocations: 30.95 kB / 473.5 MB, free: 6.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.3782, allocations: 107.4 kB / 473.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3782, allocations: 0 / 473.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.3995, allocations: 8.484 MB / 482.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.3997, allocations: 181 kB / 482.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.475, allocations: 0 / 482.3 MB, free: 13.32 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat