Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00101/0.00101, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 227.2 MB / 245 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008349/0.0008347, allocations: 93.2 kB / 297.2 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000255/0.0002552, allocations: 4 kB / 358 MB, free: 9.258 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2281, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7635/0.9917, allocations: 322.5 MB / 0.7149 GB, free: 146.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.992, allocations: 90.02 kB / 0.715 GB, free: 146.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8078/1.8, allocations: 274.5 MB / 0.9831 GB, free: 48.63 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.444e-06/1.8, allocations: 0 / 0.9831 GB, free: 48.63 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001124/1.8, allocations: 39.98 kB / 0.9831 GB, free: 48.59 MB / 458.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.006107/1.806, allocations: 2.009 MB / 0.9851 GB, free: 46.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/1.806, allocations: 12.02 kB / 0.9851 GB, free: 46.51 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002885/1.806, allocations: 168.5 kB / 0.9852 GB, free: 46.34 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004562/1.807, allocations: 170.1 kB / 0.9854 GB, free: 46.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/1.809, allocations: 1.128 MB / 0.9865 GB, free: 45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/1.809, allocations: 179.1 kB / 0.9867 GB, free: 44.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/1.809, allocations: 95.97 kB / 0.9868 GB, free: 44.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/1.812, allocations: 1.767 MB / 0.9885 GB, free: 42.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/1.812, allocations: 4 kB / 0.9885 GB, free: 42.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/1.812, allocations: 51.97 kB / 0.9885 GB, free: 42.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/1.812, allocations: 105.9 kB / 0.9886 GB, free: 42.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002283/1.814, allocations: 1.772 MB / 0.9904 GB, free: 40.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009147/1.823, allocations: 6.384 MB / 0.9966 GB, free: 34.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/1.825, allocations: 1.172 MB / 0.9978 GB, free: 33.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004488/1.829, allocations: 4.15 MB / 1.002 GB, free: 28.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/1.829, allocations: 43.56 kB / 1.002 GB, free: 28.48 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009082/1.83, allocations: 214.6 kB / 1.002 GB, free: 28.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 2.865e-06/1.83, allocations: 0 / 1.002 GB, free: 28.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01552/1.846, allocations: 5.362 MB / 1.007 GB, free: 22.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/1.846, allocations: 145.5 kB / 1.007 GB, free: 22.68 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/1.847, allocations: 1.11 MB / 1.009 GB, free: 21.56 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/1.847, allocations: 49.7 kB / 1.009 GB, free: 21.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003361/1.848, allocations: 0.5937 MB / 1.009 GB, free: 20.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002681/1.848, allocations: 390.4 kB / 1.01 GB, free: 20.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-05/1.848, allocations: 32 kB / 1.01 GB, free: 20.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/1.848, allocations: 361.9 kB / 1.01 GB, free: 20.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008724/1.849, allocations: 0.6324 MB / 1.011 GB, free: 19.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/1.85, allocations: 0.9665 MB / 1.011 GB, free: 18.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009616/1.851, allocations: 0.764 MB / 1.012 GB, free: 17.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/1.851, allocations: 8 kB / 1.012 GB, free: 17.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002998/1.854, allocations: 2.097 MB / 1.014 GB, free: 15.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007632/1.855, allocations: 3.518 MB / 1.018 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/1.855, allocations: 8 kB / 1.018 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006756/1.862, allocations: 1.222 MB / 1.019 GB, free: 10.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/1.863, allocations: 295.5 kB / 1.019 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/1.865, allocations: 1.525 MB / 1.021 GB, free: 8.676 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/1.867, allocations: 87.86 kB / 1.021 GB, free: 8.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/1.867, allocations: 71.95 kB / 1.021 GB, free: 8.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/1.867, allocations: 4 kB / 1.021 GB, free: 8.516 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002717/1.87, allocations: 1.888 MB / 1.023 GB, free: 6.625 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/1.87, allocations: 8 kB / 1.023 GB, free: 6.617 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006113/1.876, allocations: 1.061 MB / 1.024 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/1.877, allocations: 303.5 kB / 1.024 GB, free: 5.258 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/1.879, allocations: 1.372 MB / 1.025 GB, free: 3.859 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/1.88, allocations: 87.8 kB / 1.025 GB, free: 3.773 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/1.881, allocations: 71.94 kB / 1.025 GB, free: 3.703 MB / 458.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 () * Number of clocked 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0008773/1.881, allocations: 464.5 kB / 1.026 GB, free: 3.238 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002285/1.882, allocations: 150.2 kB / 1.026 GB, free: 3.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003444/1.885, allocations: 2.026 MB / 1.028 GB, free: 1.051 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/1.885, allocations: 16 kB / 1.028 GB, free: 1.035 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/1.885, allocations: 0 / 1.028 GB, free: 1.035 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/1.885, allocations: 11.91 kB / 1.028 GB, free: 1.023 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3013/2.186, allocations: 3.422 MB / 1.031 GB, free: 68.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/2.186, allocations: 0 / 1.031 GB, free: 68.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008842/2.187, allocations: 189.1 kB / 1.032 GB, free: 68.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003439/2.191, allocations: 0.9624 MB / 1.033 GB, free: 68.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/2.191, allocations: 34.42 kB / 1.033 GB, free: 68.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/2.193, allocations: 1.556 MB / 1.034 GB, free: 68.17 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/2.193, allocations: 3.828 kB / 1.034 GB, free: 68.17 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004171/2.197, allocations: 2.751 MB / 1.037 GB, free: 67.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/2.198, allocations: 403.3 kB / 1.037 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/2.198, allocations: 32.84 kB / 1.037 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/2.199, allocations: 82.33 kB / 1.037 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/2.2, allocations: 101.1 kB / 1.037 GB, free: 67.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/2.2, allocations: 48.77 kB / 1.037 GB, free: 67.89 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001161/2.201, allocations: 0.8405 MB / 1.038 GB, free: 67.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.31e-07/2.201, allocations: 2.156 kB / 1.038 GB, free: 67.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003553/2.205, allocations: 1.261 MB / 1.039 GB, free: 67.78 MB / 458.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 () * Number of clocked 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.007238/2.212, allocations: 4.282 MB / 1.044 GB, free: 67.03 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005427/2.217, allocations: 2.61 MB / 1.046 GB, free: 66.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/2.217, allocations: 2.375 kB / 1.046 GB, free: 66.99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/2.219, allocations: 0.8345 MB / 1.047 GB, free: 66.97 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/2.222, allocations: 0.6045 MB / 1.048 GB, free: 66.97 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008869/2.231, allocations: 10.8 MB / 1.058 GB, free: 59.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007185/2.231, allocations: 1.322 MB / 1.059 GB, free: 58.41 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002034/2.233, allocations: 0.5611 MB / 1.06 GB, free: 58.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006814/2.234, allocations: 0.5422 MB / 1.061 GB, free: 58.38 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/2.234, allocations: 3.438 kB / 1.061 GB, free: 58.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07775/2.312, allocations: 54.25 MB / 1.114 GB, free: 55.75 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/2.312, allocations: 192.9 kB / 1.114 GB, free: 55.52 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.713/6.025, allocations: 0 / 1.114 GB, free: 55.52 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat