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.001463/0.001463, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009533/0.0009534, allocations: 97.84 kB / 286.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.318e-05/2.295e-05, allocations: 4 kB / 343.8 MB, free: 8.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 51.47 MB / 395.3 MB, free: 4.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8755/0.9823, allocations: 321.8 MB / 0.7003 GB, free: 36.62 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.9826, allocations: 81.77 kB / 0.7003 GB, free: 36.58 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.401/2.384, allocations: 271.9 MB / 0.9659 GB, free: 66.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.885e-06/2.384, allocations: 0 / 0.9659 GB, free: 66.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002923/2.384, allocations: 43.36 kB / 0.9659 GB, free: 66.63 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.009219/2.394, allocations: 1.82 MB / 0.9677 GB, free: 65.74 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.727e-05/2.394, allocations: 10 kB / 0.9677 GB, free: 65.74 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002118/2.396, allocations: 173.5 kB / 0.9679 GB, free: 65.66 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005061/2.401, allocations: 1.129 MB / 0.969 GB, free: 65.32 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000375/2.401, allocations: 138.9 kB / 0.9691 GB, free: 65.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001074/2.402, allocations: 61.56 kB / 0.9692 GB, free: 65.22 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005151/2.408, allocations: 1.593 MB / 0.9707 GB, free: 65.22 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004722/2.412, allocations: 1.603 MB / 0.9723 GB, free: 65.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.156e-05/2.412, allocations: 3.812 kB / 0.9723 GB, free: 65.05 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003278/2.413, allocations: 2.875 kB / 0.9723 GB, free: 65.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002442/2.413, allocations: 108.8 kB / 0.9724 GB, free: 65.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01479/2.428, allocations: 6.118 MB / 0.9784 GB, free: 63.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001778/2.43, allocations: 1.121 MB / 0.9795 GB, free: 63.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009529/2.431, allocations: 0.6837 MB / 0.9801 GB, free: 63.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006707/2.437, allocations: 4.176 MB / 0.9842 GB, free: 60.72 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/2.437, allocations: 49.84 kB / 0.9843 GB, free: 60.68 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001243/2.439, allocations: 165.8 kB / 0.9844 GB, free: 60.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 6.682e-06/2.439, allocations: 0 / 0.9844 GB, free: 60.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01317/2.452, allocations: 4.118 MB / 0.9884 GB, free: 60.08 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/2.452, allocations: 140.8 kB / 0.9886 GB, free: 59.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001496/2.453, allocations: 0.8128 MB / 0.9894 GB, free: 59.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000141/2.454, allocations: 29.55 kB / 0.9894 GB, free: 59.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004059/2.454, allocations: 0.6099 MB / 0.99 GB, free: 59.45 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/2.454, allocations: 375.1 kB / 0.9904 GB, free: 59.21 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/2.454, allocations: 0 / 0.9904 GB, free: 59.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/2.455, allocations: 369 kB / 0.9907 GB, free: 58.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/2.456, allocations: 0.6032 MB / 0.9913 GB, free: 58.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/2.457, allocations: 0.9288 MB / 0.9922 GB, free: 58.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00518/2.462, allocations: 1.508 MB / 0.9937 GB, free: 58.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/2.462, allocations: 3.906 kB / 0.9937 GB, free: 58.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00801/2.47, allocations: 2.745 MB / 0.9964 GB, free: 58.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000996/2.471, allocations: 3.484 MB / 0.9998 GB, free: 54.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.71e-05/2.471, allocations: 7.375 kB / 0.9998 GB, free: 54.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005787/2.477, allocations: 1.067 MB / 1.001 GB, free: 54.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/2.479, allocations: 296.5 kB / 1.001 GB, free: 54.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004561/2.483, allocations: 1.889 MB / 1.003 GB, free: 54.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002186/2.485, allocations: 63.22 kB / 1.003 GB, free: 54.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004747/2.486, allocations: 66.09 kB / 1.003 GB, free: 54.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/2.486, allocations: 3.938 kB / 1.003 GB, free: 54.2 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008146/2.494, allocations: 2.447 MB / 1.005 GB, free: 54.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/2.494, allocations: 7.094 kB / 1.005 GB, free: 54.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005537/2.5, allocations: 1.006 MB / 1.006 GB, free: 54.15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/2.501, allocations: 301.5 kB / 1.007 GB, free: 54.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/2.504, allocations: 1.634 MB / 1.008 GB, free: 53.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/2.506, allocations: 58.92 kB / 1.008 GB, free: 53.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003062/2.506, allocations: 67.22 kB / 1.008 GB, free: 53.61 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 () * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005769/2.507, allocations: 150.3 kB / 1.009 GB, free: 53.49 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005074/2.512, allocations: 1.816 MB / 1.01 GB, free: 53.35 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006617/2.513, allocations: 134.9 kB / 1.01 GB, free: 53.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005912/2.519, allocations: 2.132 MB / 1.013 GB, free: 52.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/2.519, allocations: 11.16 kB / 1.013 GB, free: 52.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/2.519, allocations: 0 / 1.013 GB, free: 52.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/2.519, allocations: 7.375 kB / 1.013 GB, free: 52.81 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007827/2.526, allocations: 3.452 MB / 1.016 GB, free: 51.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/2.526, allocations: 0 / 1.016 GB, free: 51.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009627/2.527, allocations: 188.2 kB / 1.016 GB, free: 51.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00296/2.53, allocations: 0.8007 MB / 1.017 GB, free: 51.36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/2.531, allocations: 18.52 kB / 1.017 GB, free: 51.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/2.534, allocations: 1.894 MB / 1.019 GB, free: 50.39 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/2.534, allocations: 0 / 1.019 GB, free: 50.39 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005928/2.54, allocations: 2.86 MB / 1.022 GB, free: 49.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/2.541, allocations: 376.6 kB / 1.022 GB, free: 49.06 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005562/2.542, allocations: 11.42 kB / 1.022 GB, free: 49.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/2.543, allocations: 63.88 kB / 1.022 GB, free: 49.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/2.544, allocations: 94.58 kB / 1.022 GB, free: 49.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/2.544, allocations: 50.7 kB / 1.022 GB, free: 49.03 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001034/2.545, allocations: 0.6027 MB / 1.023 GB, free: 48.74 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.41e-07/2.545, allocations: 0 / 1.023 GB, free: 48.74 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005036/2.55, allocations: 1.174 MB / 1.024 GB, free: 48.49 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 () * 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.009891/2.56, allocations: 4.383 MB / 1.028 GB, free: 46.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00532/2.565, allocations: 2.466 MB / 1.031 GB, free: 45.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.083e-05/2.565, allocations: 0 / 1.031 GB, free: 45.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/2.567, allocations: 0.7875 MB / 1.031 GB, free: 45.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003252/2.57, allocations: 0.535 MB / 1.032 GB, free: 45.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/2.581, allocations: 2.957 MB / 1.035 GB, free: 44.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/2.582, allocations: 1.322 MB / 1.036 GB, free: 43.39 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003212/2.585, allocations: 0.5748 MB / 1.037 GB, free: 43.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/2.586, allocations: 0.5186 MB / 1.037 GB, free: 42.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.272e-06/2.586, allocations: 0 / 1.037 GB, free: 42.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/2.687, allocations: 50.07 MB / 1.086 GB, free: 2.266 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/2.687, allocations: 129.3 kB / 1.086 GB, free: 2.07 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.384/7.071, allocations: 4 kB / 1.086 GB, free: 2.066 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