Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.0009608/0.0009608, allocations: 172.2 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.373/1.373, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008221/0.000822, allocations: 90.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.882e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1014, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7419/0.8434, allocations: 320.9 MB / 0.6748 GB, free: 5.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.8437, allocations: 82.08 kB / 0.6749 GB, free: 5.438 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4864/1.33, allocations: 131.6 MB / 0.8034 GB, free: 65.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.613e-06/1.33, allocations: 0 / 0.8034 GB, free: 65.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.617e-05/1.33, allocations: 27.86 kB / 0.8034 GB, free: 65.49 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002334/1.333, allocations: 1.087 MB / 0.8044 GB, free: 64.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/1.333, allocations: 8.031 kB / 0.8045 GB, free: 64.35 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/1.333, allocations: 106.5 kB / 0.8046 GB, free: 64.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002914/1.333, allocations: 102.9 kB / 0.8047 GB, free: 64.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/1.334, allocations: 0.6518 MB / 0.8053 GB, free: 63.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.718e-05/1.334, allocations: 108.7 kB / 0.8054 GB, free: 63.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/1.334, allocations: 51.98 kB / 0.8054 GB, free: 63.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/1.336, allocations: 0.8815 MB / 0.8063 GB, free: 62.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/1.336, allocations: 0 / 0.8063 GB, free: 62.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.787e-05/1.336, allocations: 27.98 kB / 0.8063 GB, free: 62.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.655e-05/1.336, allocations: 49.28 kB / 0.8064 GB, free: 62.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/1.337, allocations: 0.8171 MB / 0.8072 GB, free: 61.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004341/1.341, allocations: 3.296 MB / 0.8104 GB, free: 58.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007564/1.342, allocations: 0.6414 MB / 0.811 GB, free: 57.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/1.342, allocations: 366.3 kB / 0.8114 GB, free: 57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002157/1.345, allocations: 2.059 MB / 0.8134 GB, free: 54.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/1.345, allocations: 35.12 kB / 0.8134 GB, free: 54.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 1.733e-06/1.345, allocations: 4 kB / 0.8134 GB, free: 54.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.003694/1.348, allocations: 2.214 MB / 0.8156 GB, free: 52.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/1.348, allocations: 85.61 kB / 0.8157 GB, free: 52.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005818/1.349, allocations: 0.5933 MB / 0.8162 GB, free: 51.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.18e-05/1.349, allocations: 41.7 kB / 0.8163 GB, free: 51.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/1.349, allocations: 340.5 kB / 0.8166 GB, free: 51.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/1.349, allocations: 224.8 kB / 0.8168 GB, free: 51.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/1.349, allocations: 16 kB / 0.8168 GB, free: 51.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.44e-05/1.35, allocations: 382.8 kB / 0.8172 GB, free: 50.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004359/1.35, allocations: 349.4 kB / 0.8175 GB, free: 50.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005703/1.351, allocations: 0.4932 MB / 0.818 GB, free: 49.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005774/1.351, allocations: 405.9 kB / 0.8184 GB, free: 49.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/1.351, allocations: 4 kB / 0.8184 GB, free: 49.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001509/1.353, allocations: 1.133 MB / 0.8195 GB, free: 48.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002928/1.353, allocations: 1.571 MB / 0.821 GB, free: 46.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/1.353, allocations: 4 kB / 0.8211 GB, free: 46.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/1.354, allocations: 432.5 kB / 0.8215 GB, free: 46.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006103/1.355, allocations: 163.7 kB / 0.8216 GB, free: 46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009109/1.356, allocations: 1.017 MB / 0.8226 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006302/1.356, allocations: 51.86 kB / 0.8227 GB, free: 44.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.541e-05/1.356, allocations: 31.98 kB / 0.8227 GB, free: 44.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/1.356, allocations: 7.938 kB / 0.8227 GB, free: 44.87 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001347/1.358, allocations: 0.9793 MB / 0.8237 GB, free: 43.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/1.358, allocations: 4 kB / 0.8237 GB, free: 43.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005803/1.358, allocations: 309.1 kB / 0.824 GB, free: 43.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005604/1.359, allocations: 163.8 kB / 0.8241 GB, free: 43.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007248/1.36, allocations: 0.9073 MB / 0.825 GB, free: 42.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/1.36, allocations: 43.92 kB / 0.825 GB, free: 42.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.265e-05/1.36, allocations: 31.98 kB / 0.8251 GB, free: 42.41 MB / 426.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.0002082/1.361, allocations: 152.9 kB / 0.8252 GB, free: 42.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/1.361, allocations: 83.05 kB / 0.8253 GB, free: 42.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/1.362, allocations: 1.078 MB / 0.8263 GB, free: 41.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/1.362, allocations: 8.047 kB / 0.8264 GB, free: 41.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.362, allocations: 7.938 kB / 0.8264 GB, free: 41.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/1.362, allocations: 3.984 kB / 0.8264 GB, free: 41.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002495/1.365, allocations: 1.997 MB / 0.8283 GB, free: 39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/1.365, allocations: 0 / 0.8283 GB, free: 39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/1.365, allocations: 115.9 kB / 0.8284 GB, free: 38.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/1.367, allocations: 440.4 kB / 0.8288 GB, free: 38.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.121e-05/1.367, allocations: 27.92 kB / 0.8289 GB, free: 38.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008577/1.367, allocations: 1.026 MB / 0.8299 GB, free: 37.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.367, allocations: 0 / 0.8299 GB, free: 37.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/1.369, allocations: 1.572 MB / 0.8314 GB, free: 35.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003396/1.37, allocations: 264 kB / 0.8317 GB, free: 35.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/1.37, allocations: 15.95 kB / 0.8317 GB, free: 35.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/1.37, allocations: 43.97 kB / 0.8317 GB, free: 35.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/1.37, allocations: 60.69 kB / 0.8318 GB, free: 35.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.851e-05/1.37, allocations: 27.98 kB / 0.8318 GB, free: 35.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004887/1.371, allocations: 471.1 kB / 0.8323 GB, free: 34.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.371, allocations: 0 / 0.8323 GB, free: 34.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002029/1.373, allocations: 0.6401 MB / 0.8329 GB, free: 34.27 MB / 426.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.003476/1.377, allocations: 2.617 MB / 0.8354 GB, free: 31.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002461/1.379, allocations: 1.38 MB / 0.8368 GB, free: 30.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.379, allocations: 0 / 0.8368 GB, free: 30.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007741/1.38, allocations: 468.1 kB / 0.8372 GB, free: 29.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/1.381, allocations: 351.3 kB / 0.8376 GB, free: 29.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/1.385, allocations: 1.702 MB / 0.8392 GB, free: 27.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/1.385, allocations: 1.008 MB / 0.8402 GB, free: 26.66 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001217/1.387, allocations: 370.4 kB / 0.8406 GB, free: 26.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/1.387, allocations: 271.3 kB / 0.8408 GB, free: 26.02 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/1.387, allocations: 0 / 0.8408 GB, free: 26.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2836/1.671, allocations: 30.49 MB / 0.8706 GB, free: 97.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/1.671, allocations: 166.7 kB / 0.8708 GB, free: 97.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.016/4.687, allocations: 1.031 kB / 0.8708 GB, free: 97.68 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat