Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.001313/0.001313, allocations: 176.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008024/0.0008025, allocations: 86.7 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.067e-05, allocations: 8 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08235/0.08238, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7127/0.7952, allocations: 320.6 MB / 0.6678 GB, free: 9.422 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.7955, allocations: 77.02 kB / 0.6679 GB, free: 9.383 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.073/1.869, allocations: 267.8 MB / 0.9294 GB, free: 72.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.869, allocations: 3.562 kB / 0.9294 GB, free: 72.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001059/1.869, allocations: 37.56 kB / 0.9294 GB, free: 72.16 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.004896/1.874, allocations: 1.821 MB / 0.9312 GB, free: 71.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.797e-05/1.874, allocations: 18.06 kB / 0.9312 GB, free: 71.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006232/1.874, allocations: 168.3 kB / 0.9314 GB, free: 71.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002044/1.876, allocations: 1.129 MB / 0.9325 GB, free: 70.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/1.877, allocations: 139.8 kB / 0.9326 GB, free: 70.72 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/1.877, allocations: 58.22 kB / 0.9327 GB, free: 70.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002191/1.879, allocations: 1.592 MB / 0.9342 GB, free: 70.72 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/1.881, allocations: 1.602 MB / 0.9358 GB, free: 70.55 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/1.881, allocations: 0 / 0.9358 GB, free: 70.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/1.881, allocations: 3.531 kB / 0.9358 GB, free: 70.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/1.881, allocations: 111.8 kB / 0.9359 GB, free: 70.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009288/1.891, allocations: 6.108 MB / 0.9419 GB, free: 68.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/1.892, allocations: 1.128 MB / 0.943 GB, free: 68.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008599/1.893, allocations: 0.6801 MB / 0.9436 GB, free: 68.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004926/1.898, allocations: 4.187 MB / 0.9477 GB, free: 66.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/1.898, allocations: 47.44 kB / 0.9478 GB, free: 66.16 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007772/1.899, allocations: 174.2 kB / 0.9479 GB, free: 66.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 2.625e-06/1.899, allocations: 0 / 0.9479 GB, free: 66.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01063/1.909, allocations: 4.102 MB / 0.952 GB, free: 65.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/1.909, allocations: 144.5 kB / 0.9521 GB, free: 65.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/1.911, allocations: 0.8176 MB / 0.9529 GB, free: 65.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.957e-05/1.911, allocations: 25.7 kB / 0.9529 GB, free: 65.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/1.911, allocations: 0.6076 MB / 0.9535 GB, free: 64.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/1.911, allocations: 374.4 kB / 0.9539 GB, free: 64.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.968e-05/1.911, allocations: 0 / 0.9539 GB, free: 64.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.932e-05/1.911, allocations: 363.6 kB / 0.9542 GB, free: 64.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009443/1.912, allocations: 0.6079 MB / 0.9548 GB, free: 64.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009794/1.913, allocations: 0.9214 MB / 0.9557 GB, free: 63.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009402/1.923, allocations: 2.325 MB / 0.958 GB, free: 63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.065e-05/1.923, allocations: 3.812 kB / 0.958 GB, free: 63 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01275/1.936, allocations: 3.551 MB / 0.9614 GB, free: 62.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007426/1.936, allocations: 3.488 MB / 0.9649 GB, free: 58.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/1.936, allocations: 10.69 kB / 0.9649 GB, free: 58.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005773/1.942, allocations: 1.068 MB / 0.9659 GB, free: 58.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/1.944, allocations: 293.3 kB / 0.9662 GB, free: 58.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003935/1.948, allocations: 1.897 MB / 0.968 GB, free: 57.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/1.949, allocations: 62.59 kB / 0.9681 GB, free: 57.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/1.95, allocations: 71.41 kB / 0.9682 GB, free: 57.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/1.95, allocations: 3.531 kB / 0.9682 GB, free: 57.31 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01136/1.961, allocations: 3.247 MB / 0.9713 GB, free: 56.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/1.961, allocations: 10.25 kB / 0.9713 GB, free: 56.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005544/1.967, allocations: 1.018 MB / 0.9723 GB, free: 56.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/1.968, allocations: 300.9 kB / 0.9726 GB, free: 56.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/1.971, allocations: 1.623 MB / 0.9742 GB, free: 54.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/1.973, allocations: 58.45 kB / 0.9743 GB, free: 54.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/1.973, allocations: 71.39 kB / 0.9743 GB, free: 54.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004215/1.973, allocations: 138 kB / 0.9745 GB, free: 54.42 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004405/1.978, allocations: 1.825 MB / 0.9763 GB, free: 52.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002259/1.978, allocations: 132.4 kB / 0.9764 GB, free: 52.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005123/1.983, allocations: 2.13 MB / 0.9785 GB, free: 51.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/1.983, allocations: 12 kB / 0.9785 GB, free: 51.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.983, allocations: 1.969 kB / 0.9785 GB, free: 51.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/1.983, allocations: 16.48 kB / 0.9785 GB, free: 51.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006563/1.99, allocations: 3.441 MB / 0.9818 GB, free: 47.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/1.99, allocations: 0 / 0.9818 GB, free: 47.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008403/1.99, allocations: 195.7 kB / 0.982 GB, free: 47.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002679/1.993, allocations: 0.8073 MB / 0.9828 GB, free: 46.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/1.993, allocations: 15.98 kB / 0.9828 GB, free: 46.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/1.997, allocations: 1.883 MB / 0.9847 GB, free: 44.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/1.997, allocations: 0 / 0.9847 GB, free: 44.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005103/2.002, allocations: 2.867 MB / 0.9875 GB, free: 41.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008238/2.002, allocations: 379.2 kB / 0.9878 GB, free: 41.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/2.003, allocations: 4 kB / 0.9878 GB, free: 41.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009787/2.004, allocations: 59.89 kB / 0.9879 GB, free: 41.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/2.004, allocations: 101.2 kB / 0.988 GB, free: 41.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/2.004, allocations: 59.89 kB / 0.9881 GB, free: 41.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008889/2.005, allocations: 0.5928 MB / 0.9886 GB, free: 40.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/2.005, allocations: 0 / 0.9886 GB, free: 40.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003468/2.008, allocations: 1.167 MB / 0.9898 GB, free: 39.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.00824/2.017, allocations: 4.38 MB / 0.994 GB, free: 35.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005431/2.022, allocations: 2.472 MB / 0.9965 GB, free: 32.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/2.022, allocations: 2.062 kB / 0.9965 GB, free: 32.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/2.024, allocations: 0.7856 MB / 0.9972 GB, free: 31.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003101/2.027, allocations: 0.5355 MB / 0.9978 GB, free: 31.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006579/2.033, allocations: 2.944 MB / 1.001 GB, free: 28.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000594/2.034, allocations: 1.316 MB / 1.002 GB, free: 27.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002041/2.036, allocations: 0.58 MB / 1.002 GB, free: 26.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005741/2.037, allocations: 0.5227 MB / 1.003 GB, free: 25.94 MB / 426.7 MB Notification: Performance of SimCode: time 1.353e-06/2.037, allocations: 0 / 1.003 GB, free: 25.94 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3494/2.386, allocations: 50.08 MB / 1.052 GB, free: 66.09 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/2.386, allocations: 131.1 kB / 1.052 GB, free: 65.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.145/6.531, allocations: 0 / 1.052 GB, free: 65.91 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat