Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_cpp_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.002237/0.002244, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001115/0.001114, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.528e-05, allocations: 8 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9924/1.095, allocations: 320.9 MB / 0.6739 GB, free: 3.469 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/1.095, allocations: 80.89 kB / 0.674 GB, free: 3.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7489/1.844, allocations: 131.6 MB / 0.8025 GB, free: 63.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.844, allocations: 0 / 0.8025 GB, free: 63.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.1e-05/1.844, allocations: 23.92 kB / 0.8025 GB, free: 63.74 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.003814/1.848, allocations: 1.083 MB / 0.8035 GB, free: 62.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/1.848, allocations: 11.97 kB / 0.8035 GB, free: 62.6 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003146/1.848, allocations: 98.5 kB / 0.8036 GB, free: 62.49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005405/1.849, allocations: 102.9 kB / 0.8037 GB, free: 62.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/1.851, allocations: 0.6558 MB / 0.8044 GB, free: 61.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/1.851, allocations: 104.7 kB / 0.8045 GB, free: 61.58 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001864/1.851, allocations: 55.98 kB / 0.8045 GB, free: 61.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/1.854, allocations: 0.8777 MB / 0.8054 GB, free: 60.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.491e-05/1.854, allocations: 4 kB / 0.8054 GB, free: 60.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/1.854, allocations: 19.98 kB / 0.8054 GB, free: 60.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/1.854, allocations: 53.27 kB / 0.8055 GB, free: 60.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002036/1.856, allocations: 0.8171 MB / 0.8063 GB, free: 59.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008791/1.865, allocations: 3.299 MB / 0.8095 GB, free: 56.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/1.866, allocations: 0.6454 MB / 0.8101 GB, free: 55.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007974/1.867, allocations: 354.4 kB / 0.8104 GB, free: 55.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005021/1.872, allocations: 2.059 MB / 0.8125 GB, free: 53.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/1.872, allocations: 39.12 kB / 0.8125 GB, free: 52.97 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 5.039e-06/1.872, allocations: 3.984 kB / 0.8125 GB, free: 52.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.007425/1.88, allocations: 2.218 MB / 0.8147 GB, free: 50.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/1.88, allocations: 89.61 kB / 0.8148 GB, free: 50.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/1.881, allocations: 0.5933 MB / 0.8153 GB, free: 49.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001715/1.881, allocations: 41.64 kB / 0.8154 GB, free: 49.94 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/1.882, allocations: 359 kB / 0.8157 GB, free: 49.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/1.882, allocations: 228.7 kB / 0.8159 GB, free: 49.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/1.882, allocations: 16 kB / 0.8159 GB, free: 49.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.255e-05/1.882, allocations: 342.8 kB / 0.8163 GB, free: 49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008556/1.883, allocations: 341.4 kB / 0.8166 GB, free: 48.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000922/1.884, allocations: 0.4968 MB / 0.8171 GB, free: 48.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009264/1.885, allocations: 405.9 kB / 0.8175 GB, free: 47.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/1.885, allocations: 0 / 0.8175 GB, free: 47.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002761/1.887, allocations: 1.09 MB / 0.8185 GB, free: 46.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003139/1.888, allocations: 1.57 MB / 0.8201 GB, free: 44.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/1.888, allocations: 8 kB / 0.8201 GB, free: 44.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/1.89, allocations: 428.5 kB / 0.8205 GB, free: 44.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/1.891, allocations: 163.7 kB / 0.8206 GB, free: 44.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/1.893, allocations: 1.017 MB / 0.8216 GB, free: 43.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/1.894, allocations: 47.92 kB / 0.8217 GB, free: 43.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/1.894, allocations: 39.92 kB / 0.8217 GB, free: 43.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/1.894, allocations: 7.938 kB / 0.8217 GB, free: 43.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002529/1.897, allocations: 0.9795 MB / 0.8227 GB, free: 42.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/1.897, allocations: 4 kB / 0.8227 GB, free: 42.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/1.898, allocations: 308.9 kB / 0.823 GB, free: 41.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/1.899, allocations: 163.8 kB / 0.8231 GB, free: 41.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/1.901, allocations: 0.8879 MB / 0.824 GB, free: 40.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000972/1.902, allocations: 47.88 kB / 0.824 GB, free: 40.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/1.902, allocations: 35.98 kB / 0.8241 GB, free: 40.75 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.0003156/1.902, allocations: 148.8 kB / 0.8242 GB, free: 40.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002626/1.902, allocations: 83.06 kB / 0.8243 GB, free: 40.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002891/1.905, allocations: 1.079 MB / 0.8254 GB, free: 39.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/1.905, allocations: 7.953 kB / 0.8254 GB, free: 39.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/1.905, allocations: 4 kB / 0.8254 GB, free: 39.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/1.905, allocations: 3.984 kB / 0.8254 GB, free: 39.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004522/1.91, allocations: 1.993 MB / 0.8273 GB, free: 37.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/1.91, allocations: 0 / 0.8273 GB, free: 37.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/1.911, allocations: 119.9 kB / 0.8274 GB, free: 37.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/1.913, allocations: 438 kB / 0.8279 GB, free: 36.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/1.913, allocations: 19.92 kB / 0.8279 GB, free: 36.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001597/1.915, allocations: 1.028 MB / 0.8289 GB, free: 35.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.915, allocations: 8.031 kB / 0.8289 GB, free: 35.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003538/1.918, allocations: 1.568 MB / 0.8304 GB, free: 34.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007067/1.919, allocations: 248 kB / 0.8306 GB, free: 33.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/1.919, allocations: 19.95 kB / 0.8307 GB, free: 33.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/1.92, allocations: 55.89 kB / 0.8307 GB, free: 33.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/1.921, allocations: 56.7 kB / 0.8308 GB, free: 33.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/1.921, allocations: 27.97 kB / 0.8308 GB, free: 33.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008377/1.922, allocations: 467.1 kB / 0.8312 GB, free: 33.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.922, allocations: 0 / 0.8312 GB, free: 33.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00244/1.924, allocations: 0.6362 MB / 0.8319 GB, free: 32.64 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.005459/1.93, allocations: 2.637 MB / 0.8344 GB, free: 29.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004472/1.934, allocations: 1.349 MB / 0.8358 GB, free: 28.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/1.934, allocations: 8.312 kB / 0.8358 GB, free: 28.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/1.936, allocations: 464.1 kB / 0.8362 GB, free: 28.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002878/1.939, allocations: 350.5 kB / 0.8365 GB, free: 27.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005898/1.944, allocations: 1.727 MB / 0.8382 GB, free: 26.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005105/1.945, allocations: 1.007 MB / 0.8392 GB, free: 24.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007289/1.946, allocations: 295.3 kB / 0.8395 GB, free: 24.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/1.946, allocations: 0 / 0.8395 GB, free: 24.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.152/5.097, allocations: 22.61 MB / 0.8616 GB, free: 2.055 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat