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.00214/0.00214, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 95.16 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.36e-05/2.359e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3247, allocations: 47.55 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9506/1.275, allocations: 320.2 MB / 0.6667 GB, free: 117.7 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/1.276, allocations: 82.14 kB / 0.6667 GB, free: 117.7 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4564/1.732, allocations: 130.7 MB / 0.7943 GB, free: 34.18 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.823e-06/1.732, allocations: 4 kB / 0.7943 GB, free: 34.18 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.184e-05/1.732, allocations: 19.94 kB / 0.7944 GB, free: 34.16 MB / 427.1 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.003182/1.735, allocations: 1.089 MB / 0.7954 GB, free: 33.02 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/1.735, allocations: 12.02 kB / 0.7954 GB, free: 33.01 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004866/1.736, allocations: 98.92 kB / 0.7955 GB, free: 32.91 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/1.738, allocations: 0.648 MB / 0.7962 GB, free: 32.22 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/1.738, allocations: 88.7 kB / 0.7963 GB, free: 32.12 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/1.738, allocations: 32 kB / 0.7963 GB, free: 32.09 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001771/1.74, allocations: 0.7483 MB / 0.797 GB, free: 31.34 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/1.742, allocations: 0.797 MB / 0.7978 GB, free: 30.52 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/1.742, allocations: 4 kB / 0.7978 GB, free: 30.52 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/1.742, allocations: 4 kB / 0.7978 GB, free: 30.51 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/1.742, allocations: 45.28 kB / 0.7978 GB, free: 30.47 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007958/1.75, allocations: 3.149 MB / 0.8009 GB, free: 27.18 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/1.751, allocations: 0.6285 MB / 0.8015 GB, free: 26.54 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006739/1.752, allocations: 358.3 kB / 0.8019 GB, free: 26.19 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00392/1.756, allocations: 2.008 MB / 0.8038 GB, free: 23.99 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/1.756, allocations: 43.11 kB / 0.8039 GB, free: 23.94 MB / 427.1 MB Notification: Performance of pre-optimization done (n=56): time 2.915e-06/1.756, allocations: 0 / 0.8039 GB, free: 23.94 MB / 427.1 MB Notification: Performance of matching and sorting (n=66): time 0.01075/1.767, allocations: 2.467 MB / 0.8063 GB, free: 21.42 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/1.767, allocations: 89.67 kB / 0.8064 GB, free: 21.31 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000739/1.768, allocations: 442.1 kB / 0.8068 GB, free: 20.87 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/1.768, allocations: 29.7 kB / 0.8068 GB, free: 20.83 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/1.768, allocations: 378.5 kB / 0.8072 GB, free: 20.46 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/1.768, allocations: 220.7 kB / 0.8074 GB, free: 20.24 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.544e-05/1.768, allocations: 0 / 0.8074 GB, free: 20.24 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.866e-05/1.768, allocations: 338.8 kB / 0.8077 GB, free: 19.9 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007323/1.769, allocations: 337.4 kB / 0.808 GB, free: 19.57 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008226/1.77, allocations: 491.1 kB / 0.8085 GB, free: 19.04 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007146/1.777, allocations: 0.9918 MB / 0.8095 GB, free: 18.04 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/1.777, allocations: 4 kB / 0.8095 GB, free: 18.04 MB / 427.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.008911/1.786, allocations: 1.644 MB / 0.8111 GB, free: 16.38 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003107/1.786, allocations: 1.567 MB / 0.8126 GB, free: 14.7 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/1.786, allocations: 4 kB / 0.8126 GB, free: 14.69 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/1.788, allocations: 360.5 kB / 0.813 GB, free: 14.34 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/1.789, allocations: 163.7 kB / 0.8131 GB, free: 14.18 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003033/1.792, allocations: 1.216 MB / 0.8143 GB, free: 12.93 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/1.793, allocations: 31.92 kB / 0.8143 GB, free: 12.9 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/1.793, allocations: 39.94 kB / 0.8144 GB, free: 12.86 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/1.793, allocations: 8 kB / 0.8144 GB, free: 12.86 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008462/1.802, allocations: 1.491 MB / 0.8158 GB, free: 11.36 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/1.802, allocations: 4 kB / 0.8158 GB, free: 11.36 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/1.803, allocations: 304.9 kB / 0.8161 GB, free: 11.05 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/1.804, allocations: 171.7 kB / 0.8163 GB, free: 10.89 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/1.807, allocations: 1.044 MB / 0.8173 GB, free: 9.816 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000856/1.807, allocations: 35.86 kB / 0.8173 GB, free: 9.781 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/1.808, allocations: 43.92 kB / 0.8174 GB, free: 9.738 MB / 427.1 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.000278/1.808, allocations: 124.7 kB / 0.8175 GB, free: 9.609 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004009/1.812, allocations: 1.046 MB / 0.8185 GB, free: 8.555 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/1.812, allocations: 67.16 kB / 0.8186 GB, free: 8.488 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004356/1.816, allocations: 1.183 MB / 0.8198 GB, free: 7.297 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/1.817, allocations: 8.094 kB / 0.8198 GB, free: 7.289 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/1.817, allocations: 7.938 kB / 0.8198 GB, free: 7.281 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/1.817, allocations: 3.984 kB / 0.8198 GB, free: 7.277 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006045/1.823, allocations: 2.036 MB / 0.8218 GB, free: 5.191 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.884e-06/1.823, allocations: 0 / 0.8218 GB, free: 5.191 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/1.824, allocations: 123.8 kB / 0.8219 GB, free: 5.07 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/1.825, allocations: 360.6 kB / 0.8222 GB, free: 4.715 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.692e-05/1.825, allocations: 11.98 kB / 0.8222 GB, free: 4.703 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002947/1.828, allocations: 1.208 MB / 0.8234 GB, free: 3.469 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.828, allocations: 3.953 kB / 0.8234 GB, free: 3.465 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00504/1.833, allocations: 1.689 MB / 0.8251 GB, free: 1.754 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006378/1.834, allocations: 232.3 kB / 0.8253 GB, free: 1.508 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/1.834, allocations: 0 / 0.8253 GB, free: 1.508 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/1.835, allocations: 43.81 kB / 0.8253 GB, free: 1.465 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/1.835, allocations: 64.83 kB / 0.8254 GB, free: 1.402 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.975e-05/1.835, allocations: 23.98 kB / 0.8254 GB, free: 1.379 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0005345/1.836, allocations: 342.9 kB / 0.8257 GB, free: 1.047 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.4e-07/1.836, allocations: 0 / 0.8257 GB, free: 1.047 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.002363/1.838, allocations: 0.5932 MB / 0.8263 GB, free: 464 kB / 427.1 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.2771/2.115, allocations: 2.695 MB / 0.829 GB, free: 95.66 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.00391/2.119, allocations: 1.303 MB / 0.8302 GB, free: 95.66 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/2.119, allocations: 3.562 kB / 0.8302 GB, free: 95.66 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/2.121, allocations: 435.9 kB / 0.8306 GB, free: 95.66 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/2.123, allocations: 317.3 kB / 0.8309 GB, free: 95.66 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/2.129, allocations: 1.643 MB / 0.8326 GB, free: 95.3 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005233/2.13, allocations: 1.007 MB / 0.8335 GB, free: 94.59 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007179/2.13, allocations: 288.3 kB / 0.8338 GB, free: 94.59 MB / 427.1 MB Notification: Performance of SimCode: time 1.302e-06/2.13, allocations: 0 / 0.8338 GB, free: 94.59 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.201/5.332, allocations: 21.91 MB / 0.8552 GB, free: 93.76 MB / 427.1 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