Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.001478/0.001478, allocations: 175.1 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.395/1.395, allocations: 221.3 MB / 235.5 MB, free: 2.922 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.0009229/0.0009229, allocations: 87.61 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.169e-05, allocations: 0 / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.145, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9126/1.058, allocations: 321.5 MB / 0.699 GB, free: 10.47 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/1.058, allocations: 87.34 kB / 0.6991 GB, free: 10.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.583/1.641, allocations: 134.4 MB / 0.8303 GB, free: 58 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.946e-06/1.641, allocations: 3.938 kB / 0.8303 GB, free: 57.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001384/1.641, allocations: 23.98 kB / 0.8304 GB, free: 57.97 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003576/1.645, allocations: 1.083 MB / 0.8314 GB, free: 56.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/1.645, allocations: 12.03 kB / 0.8314 GB, free: 56.83 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003568/1.645, allocations: 98.5 kB / 0.8315 GB, free: 56.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006112/1.646, allocations: 94.97 kB / 0.8316 GB, free: 56.63 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/1.648, allocations: 0.6596 MB / 0.8323 GB, free: 55.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/1.648, allocations: 116.7 kB / 0.8324 GB, free: 55.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/1.648, allocations: 47.98 kB / 0.8324 GB, free: 55.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/1.65, allocations: 0.8777 MB / 0.8333 GB, free: 54.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/1.65, allocations: 0 / 0.8333 GB, free: 54.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/1.65, allocations: 27.98 kB / 0.8333 GB, free: 54.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.266e-05/1.65, allocations: 49.28 kB / 0.8333 GB, free: 54.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/1.651, allocations: 0.8133 MB / 0.8341 GB, free: 53.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005503/1.657, allocations: 3.292 MB / 0.8374 GB, free: 50.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008599/1.658, allocations: 0.653 MB / 0.838 GB, free: 49.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004457/1.658, allocations: 370.3 kB / 0.8383 GB, free: 49.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002729/1.661, allocations: 2.051 MB / 0.8404 GB, free: 47.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/1.661, allocations: 39.12 kB / 0.8404 GB, free: 47.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.564e-06/1.661, allocations: 0 / 0.8404 GB, free: 47.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.004437/1.665, allocations: 2.214 MB / 0.8426 GB, free: 44.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/1.665, allocations: 85.67 kB / 0.8426 GB, free: 44.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008234/1.666, allocations: 0.5971 MB / 0.8432 GB, free: 44.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.674e-05/1.666, allocations: 41.7 kB / 0.8433 GB, free: 44.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/1.667, allocations: 336.4 kB / 0.8436 GB, free: 43.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/1.667, allocations: 228.8 kB / 0.8438 GB, free: 43.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/1.667, allocations: 12 kB / 0.8438 GB, free: 43.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/1.667, allocations: 386.8 kB / 0.8442 GB, free: 43.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004666/1.667, allocations: 353.4 kB / 0.8445 GB, free: 42.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005461/1.668, allocations: 0.4956 MB / 0.845 GB, free: 42.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/1.669, allocations: 401.9 kB / 0.8454 GB, free: 41.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/1.669, allocations: 0 / 0.8454 GB, free: 41.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001737/1.67, allocations: 1.121 MB / 0.8465 GB, free: 40.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000435/1.671, allocations: 1.579 MB / 0.848 GB, free: 39.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/1.671, allocations: 4 kB / 0.848 GB, free: 39.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/1.672, allocations: 428.5 kB / 0.8484 GB, free: 38.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006181/1.673, allocations: 163.8 kB / 0.8486 GB, free: 38.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/1.674, allocations: 1.032 MB / 0.8496 GB, free: 37.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007988/1.674, allocations: 43.83 kB / 0.8496 GB, free: 37.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.369e-05/1.675, allocations: 31.98 kB / 0.8497 GB, free: 37.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.675, allocations: 11.95 kB / 0.8497 GB, free: 37.37 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001552/1.676, allocations: 0.9796 MB / 0.8506 GB, free: 36.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/1.676, allocations: 4 kB / 0.8506 GB, free: 36.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006315/1.677, allocations: 312.7 kB / 0.8509 GB, free: 36.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005934/1.677, allocations: 159.8 kB / 0.8511 GB, free: 35.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008255/1.678, allocations: 0.9035 MB / 0.852 GB, free: 34.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007486/1.679, allocations: 43.94 kB / 0.852 GB, free: 34.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.38e-05/1.679, allocations: 31.98 kB / 0.852 GB, free: 34.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002409/1.679, allocations: 160.8 kB / 0.8522 GB, free: 34.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/1.68, allocations: 79.05 kB / 0.8523 GB, free: 34.67 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/1.681, allocations: 1.071 MB / 0.8533 GB, free: 33.58 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/1.681, allocations: 12.09 kB / 0.8533 GB, free: 33.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.681, allocations: 3.938 kB / 0.8533 GB, free: 33.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/1.681, allocations: 3.984 kB / 0.8533 GB, free: 33.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/1.684, allocations: 1.997 MB / 0.8553 GB, free: 31.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/1.684, allocations: 0 / 0.8553 GB, free: 31.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005452/1.685, allocations: 123.9 kB / 0.8554 GB, free: 31.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/1.686, allocations: 434 kB / 0.8558 GB, free: 30.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.939e-05/1.686, allocations: 23.98 kB / 0.8558 GB, free: 30.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009263/1.687, allocations: 1.021 MB / 0.8568 GB, free: 29.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.687, allocations: 0 / 0.8568 GB, free: 29.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/1.689, allocations: 1.588 MB / 0.8584 GB, free: 28.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004877/1.69, allocations: 252 kB / 0.8586 GB, free: 28.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001919/1.69, allocations: 12 kB / 0.8586 GB, free: 28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000717/1.691, allocations: 55.81 kB / 0.8587 GB, free: 27.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/1.691, allocations: 56.69 kB / 0.8587 GB, free: 27.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.587e-05/1.691, allocations: 31.97 kB / 0.8588 GB, free: 27.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006162/1.691, allocations: 471.1 kB / 0.8592 GB, free: 27.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.692, allocations: 0 / 0.8592 GB, free: 27.41 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002212/1.694, allocations: 0.6401 MB / 0.8599 GB, free: 26.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004/1.698, allocations: 2.602 MB / 0.8624 GB, free: 24.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002765/1.701, allocations: 1.38 MB / 0.8637 GB, free: 22.76 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/1.701, allocations: 4 kB / 0.8637 GB, free: 22.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008301/1.701, allocations: 472.5 kB / 0.8642 GB, free: 22.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/1.703, allocations: 352.7 kB / 0.8645 GB, free: 21.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/1.708, allocations: 1.695 MB / 0.8662 GB, free: 20.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/1.708, allocations: 1.012 MB / 0.8672 GB, free: 19.17 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001469/1.71, allocations: 370 kB / 0.8675 GB, free: 18.81 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004117/1.71, allocations: 275.3 kB / 0.8678 GB, free: 18.54 MB / 442.7 MB Notification: Performance of SimCode: time 1.223e-06/1.71, allocations: 4 kB / 0.8678 GB, free: 18.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3541/2.065, allocations: 30.49 MB / 0.8976 GB, free: 95.22 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/2.065, allocations: 173 kB / 0.8977 GB, free: 95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.458/5.523, allocations: 0 / 0.8977 GB, free: 95 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat