Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009013/0.0009013, allocations: 105.8 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.821e-05/2.824e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1256, allocations: 50.42 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.271/1.397, allocations: 412 MB / 0.7875 GB, free: 101.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/1.397, allocations: 83.95 kB / 0.7876 GB, free: 101.6 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8197/2.217, allocations: 216.9 MB / 0.9994 GB, free: 57.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.443e-06/2.217, allocations: 0 / 0.9994 GB, free: 57.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001661/2.217, allocations: 32.69 kB / 0.9994 GB, free: 57.38 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007154/2.224, allocations: 1.804 MB / 1.001 GB, free: 55.53 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/2.224, allocations: 8.031 kB / 1.001 GB, free: 55.52 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001009/2.225, allocations: 173.2 kB / 1.001 GB, free: 55.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/2.226, allocations: 170.2 kB / 1.001 GB, free: 55.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003408/2.23, allocations: 0.9881 MB / 1.002 GB, free: 54.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003982/2.23, allocations: 234.5 kB / 1.003 GB, free: 53.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005795/2.231, allocations: 103.9 kB / 1.003 GB, free: 53.78 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004286/2.235, allocations: 1.783 MB / 1.005 GB, free: 51.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.868e-05/2.235, allocations: 3.938 kB / 1.005 GB, free: 51.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004366/2.236, allocations: 43.98 kB / 1.005 GB, free: 51.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/2.236, allocations: 105.9 kB / 1.005 GB, free: 51.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/2.239, allocations: 1.73 MB / 1.006 GB, free: 50.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01288/2.252, allocations: 6.792 MB / 1.013 GB, free: 42.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002527/2.254, allocations: 1.42 MB / 1.014 GB, free: 41.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001154/2.256, allocations: 0.827 MB / 1.015 GB, free: 40.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006626/2.262, allocations: 3.957 MB / 1.019 GB, free: 36.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.075e-05/2.262, allocations: 51.5 kB / 1.019 GB, free: 36.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 6.552e-06/2.262, allocations: 0 / 1.019 GB, free: 36.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01163/2.274, allocations: 4.597 MB / 1.024 GB, free: 31.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/2.274, allocations: 175.2 kB / 1.024 GB, free: 31.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001899/2.276, allocations: 0.9787 MB / 1.025 GB, free: 30.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001706/2.276, allocations: 53.7 kB / 1.025 GB, free: 30.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004287/2.277, allocations: 0.5119 MB / 1.025 GB, free: 29.99 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004572/2.277, allocations: 418.1 kB / 1.026 GB, free: 29.58 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/2.277, allocations: 24 kB / 1.026 GB, free: 29.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/2.278, allocations: 361.9 kB / 1.026 GB, free: 29.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/2.279, allocations: 0.738 MB / 1.027 GB, free: 28.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/2.28, allocations: 0.9904 MB / 1.028 GB, free: 27.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/2.282, allocations: 0.813 MB / 1.029 GB, free: 26.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/2.282, allocations: 0 / 1.029 GB, free: 26.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.00458/2.286, allocations: 2.393 MB / 1.031 GB, free: 24.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006477/2.287, allocations: 2.185 MB / 1.033 GB, free: 21.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/2.287, allocations: 11.95 kB / 1.033 GB, free: 21.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003845/2.291, allocations: 1.185 MB / 1.034 GB, free: 20.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/2.292, allocations: 215.7 kB / 1.034 GB, free: 20.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005949/2.298, allocations: 6.18 MB / 1.04 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/2.3, allocations: 99.8 kB / 1.04 GB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000476/2.3, allocations: 63.97 kB / 1.041 GB, free: 13.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/2.3, allocations: 4 kB / 1.041 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004454/2.305, allocations: 2.19 MB / 1.043 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/2.305, allocations: 4 kB / 1.043 GB, free: 11.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002792/2.308, allocations: 1.011 MB / 1.044 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/2.309, allocations: 227.6 kB / 1.044 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005385/2.314, allocations: 6.023 MB / 1.05 GB, free: 3.855 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/2.316, allocations: 95.84 kB / 1.05 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000318/2.317, allocations: 59.97 kB / 1.05 GB, free: 3.703 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007829/2.317, allocations: 192.5 kB / 1.05 GB, free: 3.508 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000494/2.318, allocations: 138.4 kB / 1.05 GB, free: 3.371 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005491/2.323, allocations: 2.566 MB / 1.053 GB, free: 0.7891 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.752e-05/2.323, allocations: 19.98 kB / 1.053 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/2.323, allocations: 0 / 1.053 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/2.323, allocations: 3.984 kB / 1.053 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3492/2.673, allocations: 4.146 MB / 1.057 GB, free: 73.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/2.673, allocations: 1.062 kB / 1.057 GB, free: 73.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008566/2.674, allocations: 150.9 kB / 1.057 GB, free: 73.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003611/2.677, allocations: 1.2 MB / 1.058 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/2.677, allocations: 40.3 kB / 1.058 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005634/2.683, allocations: 6.21 MB / 1.064 GB, free: 68.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/2.683, allocations: 3 kB / 1.064 GB, free: 68.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008118/2.691, allocations: 3.537 MB / 1.068 GB, free: 68.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/2.693, allocations: 436.2 kB / 1.068 GB, free: 68.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000684/2.693, allocations: 28.06 kB / 1.068 GB, free: 68.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/2.695, allocations: 97.14 kB / 1.068 GB, free: 68.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006321/2.696, allocations: 148.1 kB / 1.068 GB, free: 68.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002218/2.696, allocations: 51.75 kB / 1.068 GB, free: 68.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001967/2.698, allocations: 0.7477 MB / 1.069 GB, free: 68.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.698, allocations: 0 / 1.069 GB, free: 68.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005895/2.704, allocations: 1.123 MB / 1.07 GB, free: 68.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0116/2.716, allocations: 4.809 MB / 1.075 GB, free: 67.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01078/2.726, allocations: 3.537 MB / 1.078 GB, free: 67.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/2.726, allocations: 3.562 kB / 1.078 GB, free: 67.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003943/2.73, allocations: 1.322 MB / 1.08 GB, free: 66.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00412/2.735, allocations: 0.551 MB / 1.08 GB, free: 66.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/2.746, allocations: 3.118 MB / 1.083 GB, free: 66.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/2.747, allocations: 1.297 MB / 1.085 GB, free: 65.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003009/2.75, allocations: 0.6956 MB / 1.085 GB, free: 65.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009326/2.751, allocations: 0.4926 MB / 1.086 GB, free: 65.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/2.751, allocations: 0 / 1.086 GB, free: 65.64 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1221/2.873, allocations: 55.21 MB / 1.14 GB, free: 63.03 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004044/2.874, allocations: 227.6 kB / 1.14 GB, free: 62.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.688/7.562, allocations: 2.812 kB / 1.14 GB, free: 62.8 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat