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.001136/0.001136, allocations: 178.4 kB / 8.697 MB, free: 388 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.571/1.571, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0008531/0.0008531, allocations: 82.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.791e-05/1.782e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09504, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8491/0.9442, allocations: 320.5 MB / 0.6676 GB, free: 9.004 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.9446, allocations: 81.98 kB / 0.6677 GB, free: 8.965 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5473/1.492, allocations: 130.7 MB / 0.7953 GB, free: 74.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.393e-06/1.492, allocations: 0 / 0.7953 GB, free: 74.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.876e-05/1.492, allocations: 20 kB / 0.7953 GB, free: 74.82 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.002625/1.495, allocations: 1.085 MB / 0.7964 GB, free: 73.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.495, allocations: 12.03 kB / 0.7964 GB, free: 73.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/1.495, allocations: 102.9 kB / 0.7965 GB, free: 73.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/1.496, allocations: 0.6554 MB / 0.7971 GB, free: 72.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.493e-05/1.496, allocations: 84.7 kB / 0.7972 GB, free: 72.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.868e-05/1.496, allocations: 36 kB / 0.7972 GB, free: 72.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001033/1.497, allocations: 0.7482 MB / 0.798 GB, free: 72.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/1.499, allocations: 0.801 MB / 0.7987 GB, free: 71.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/1.499, allocations: 3.938 kB / 0.7987 GB, free: 71.19 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.471e-05/1.499, allocations: 4 kB / 0.7988 GB, free: 71.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.46e-05/1.499, allocations: 45.28 kB / 0.7988 GB, free: 71.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004694/1.503, allocations: 3.155 MB / 0.8019 GB, free: 67.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007403/1.504, allocations: 0.6207 MB / 0.8025 GB, free: 67.24 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003659/1.505, allocations: 346.4 kB / 0.8028 GB, free: 66.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002384/1.507, allocations: 2.003 MB / 0.8048 GB, free: 64.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/1.507, allocations: 47.06 kB / 0.8048 GB, free: 64.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.023e-06/1.507, allocations: 0 / 0.8048 GB, free: 64.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.006124/1.513, allocations: 2.475 MB / 0.8072 GB, free: 62.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/1.513, allocations: 85.67 kB / 0.8073 GB, free: 62.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004903/1.514, allocations: 450 kB / 0.8077 GB, free: 61.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.451e-05/1.514, allocations: 29.7 kB / 0.8078 GB, free: 61.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/1.514, allocations: 348 kB / 0.8081 GB, free: 61.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/1.514, allocations: 212.8 kB / 0.8083 GB, free: 61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.443e-05/1.514, allocations: 0 / 0.8083 GB, free: 61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/1.514, allocations: 378.8 kB / 0.8087 GB, free: 60.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004028/1.515, allocations: 333.4 kB / 0.809 GB, free: 60.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004592/1.515, allocations: 491.2 kB / 0.8095 GB, free: 59.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003686/1.519, allocations: 0.9879 MB / 0.8104 GB, free: 58.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/1.519, allocations: 4 kB / 0.8104 GB, free: 58.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.004712/1.524, allocations: 1.671 MB / 0.8121 GB, free: 57.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002789/1.524, allocations: 1.583 MB / 0.8136 GB, free: 55.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/1.524, allocations: 4 kB / 0.8136 GB, free: 55.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007281/1.525, allocations: 360.5 kB / 0.8139 GB, free: 55.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006016/1.525, allocations: 155.8 kB / 0.8141 GB, free: 54.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/1.527, allocations: 1.22 MB / 0.8153 GB, free: 53.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007215/1.528, allocations: 31.88 kB / 0.8153 GB, free: 53.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.472e-05/1.528, allocations: 35.94 kB / 0.8154 GB, free: 53.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/1.528, allocations: 4 kB / 0.8154 GB, free: 53.55 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004471/1.532, allocations: 1.502 MB / 0.8168 GB, free: 52.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.532, allocations: 4 kB / 0.8168 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006078/1.533, allocations: 313.2 kB / 0.8171 GB, free: 51.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006151/1.534, allocations: 163.7 kB / 0.8173 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/1.535, allocations: 1.071 MB / 0.8183 GB, free: 50.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/1.536, allocations: 24.03 kB / 0.8183 GB, free: 50.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.443e-05/1.536, allocations: 35.94 kB / 0.8184 GB, free: 50.42 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.0002294/1.536, allocations: 128.8 kB / 0.8185 GB, free: 50.29 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002266/1.538, allocations: 1.049 MB / 0.8195 GB, free: 49.22 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/1.538, allocations: 63.25 kB / 0.8196 GB, free: 49.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/1.541, allocations: 1.195 MB / 0.8208 GB, free: 47.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/1.541, allocations: 8 kB / 0.8208 GB, free: 47.94 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/1.541, allocations: 3.953 kB / 0.8208 GB, free: 47.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/1.541, allocations: 3.984 kB / 0.8208 GB, free: 47.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003496/1.545, allocations: 2.03 MB / 0.8228 GB, free: 45.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/1.545, allocations: 0 / 0.8228 GB, free: 45.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005243/1.545, allocations: 115.9 kB / 0.8229 GB, free: 45.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007141/1.546, allocations: 368.6 kB / 0.8232 GB, free: 45.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/1.546, allocations: 4 kB / 0.8232 GB, free: 45.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/1.548, allocations: 1.216 MB / 0.8244 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/1.548, allocations: 7.891 kB / 0.8244 GB, free: 44.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002897/1.55, allocations: 1.681 MB / 0.8261 GB, free: 42.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004302/1.551, allocations: 240.1 kB / 0.8263 GB, free: 42.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/1.551, allocations: 0 / 0.8263 GB, free: 42.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005602/1.552, allocations: 39.95 kB / 0.8263 GB, free: 42.15 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/1.552, allocations: 52.66 kB / 0.8264 GB, free: 42.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-05/1.552, allocations: 39.91 kB / 0.8264 GB, free: 42.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004051/1.552, allocations: 334.9 kB / 0.8267 GB, free: 41.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.552, allocations: 0 / 0.8267 GB, free: 41.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002069/1.554, allocations: 0.5893 MB / 0.8273 GB, free: 41.14 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.004308/1.559, allocations: 2.719 MB / 0.83 GB, free: 38.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002405/1.561, allocations: 1.32 MB / 0.8313 GB, free: 37.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.561, allocations: 448 / 0.8313 GB, free: 37.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007504/1.562, allocations: 450.6 kB / 0.8317 GB, free: 36.67 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/1.563, allocations: 317 kB / 0.832 GB, free: 36.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003848/1.567, allocations: 1.616 MB / 0.8336 GB, free: 34.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/1.568, allocations: 1.015 MB / 0.8346 GB, free: 33.65 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001073/1.569, allocations: 313.9 kB / 0.8349 GB, free: 33.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/1.569, allocations: 275.2 kB / 0.8351 GB, free: 33.07 MB / 426.7 MB Notification: Performance of SimCode: time 2.705e-06/1.569, allocations: 0 / 0.8351 GB, free: 33.07 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05229/1.621, allocations: 26.64 MB / 0.8611 GB, free: 6.391 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/1.622, allocations: 129.7 kB / 0.8613 GB, free: 6.195 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.109/4.731, allocations: 0 / 0.8613 GB, free: 6.195 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