Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 201.7 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 225.6 MB / 234.8 MB, free: 3.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008686/0.0008685, allocations: 95.75 kB / 286.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.508e-05/2.487e-05, allocations: 0 / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.132, allocations: 51.48 MB / 395.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.374/1.506, allocations: 412.2 MB / 0.7885 GB, free: 108.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003082/1.506, allocations: 84.02 kB / 0.7886 GB, free: 108.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8274/2.334, allocations: 214.7 MB / 0.9983 GB, free: 63.74 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/2.334, allocations: 4 kB / 0.9983 GB, free: 63.74 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000107/2.334, allocations: 31.72 kB / 0.9983 GB, free: 63.73 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005995/2.34, allocations: 1.81 MB / 1 GB, free: 62.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/2.34, allocations: 7.844 kB / 1 GB, free: 62.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008595/2.341, allocations: 174.9 kB / 1 GB, free: 62.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/2.343, allocations: 0.9815 MB / 1.001 GB, free: 61.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/2.343, allocations: 199.1 kB / 1.001 GB, free: 61.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001898/2.344, allocations: 62.39 kB / 1.001 GB, free: 61.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002496/2.346, allocations: 1.603 MB / 1.003 GB, free: 60.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/2.349, allocations: 1.649 MB / 1.005 GB, free: 59.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/2.349, allocations: 0 / 1.005 GB, free: 59.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/2.349, allocations: 2.656 kB / 1.005 GB, free: 59.77 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001325/2.349, allocations: 100.6 kB / 1.005 GB, free: 59.74 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/2.36, allocations: 6.529 MB / 1.011 GB, free: 55.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/2.362, allocations: 1.383 MB / 1.012 GB, free: 54.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/2.364, allocations: 0.8017 MB / 1.013 GB, free: 53.78 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005595/2.369, allocations: 3.853 MB / 1.017 GB, free: 49.69 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/2.369, allocations: 43.88 kB / 1.017 GB, free: 49.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 3.757e-06/2.369, allocations: 0 / 1.017 GB, free: 49.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.0253/2.395, allocations: 6.43 MB / 1.023 GB, free: 43.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/2.395, allocations: 171.5 kB / 1.024 GB, free: 42.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/2.396, allocations: 0.6527 MB / 1.024 GB, free: 42.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002228/2.396, allocations: 29.64 kB / 1.024 GB, free: 42.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004731/2.397, allocations: 0.5501 MB / 1.025 GB, free: 41.69 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004788/2.397, allocations: 398.1 kB / 1.025 GB, free: 41.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/2.397, allocations: 0 / 1.025 GB, free: 41.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/2.397, allocations: 358.3 kB / 1.025 GB, free: 40.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/2.399, allocations: 0.7184 MB / 1.026 GB, free: 40.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/2.4, allocations: 0.9627 MB / 1.027 GB, free: 39.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006484/2.406, allocations: 1.817 MB / 1.029 GB, free: 37.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/2.407, allocations: 0 / 1.029 GB, free: 37.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01095/2.417, allocations: 3.294 MB / 1.032 GB, free: 34.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004892/2.418, allocations: 2.182 MB / 1.034 GB, free: 31.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/2.418, allocations: 4 kB / 1.034 GB, free: 31.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/2.42, allocations: 0.9798 MB / 1.035 GB, free: 30.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/2.421, allocations: 219.6 kB / 1.035 GB, free: 30.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/2.43, allocations: 6.581 MB / 1.042 GB, free: 23.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001893/2.431, allocations: 71.84 kB / 1.042 GB, free: 23.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004075/2.432, allocations: 59.97 kB / 1.042 GB, free: 23.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/2.432, allocations: 5.719 kB / 1.042 GB, free: 23.46 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009143/2.441, allocations: 3.048 MB / 1.045 GB, free: 20.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/2.441, allocations: 4 kB / 1.045 GB, free: 20.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/2.443, allocations: 0.9333 MB / 1.046 GB, free: 19.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/2.444, allocations: 223.7 kB / 1.046 GB, free: 19.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007682/2.452, allocations: 6.361 MB / 1.052 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/2.454, allocations: 71.84 kB / 1.052 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004694/2.455, allocations: 63.91 kB / 1.052 GB, free: 12.44 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007945/2.455, allocations: 140.7 kB / 1.053 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007376/2.463, allocations: 2.65 MB / 1.055 GB, free: 9.621 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/2.463, allocations: 110.9 kB / 1.055 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007915/2.471, allocations: 3.068 MB / 1.058 GB, free: 6.434 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/2.471, allocations: 19.98 kB / 1.058 GB, free: 6.414 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/2.471, allocations: 4 kB / 1.058 GB, free: 6.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/2.471, allocations: 7.969 kB / 1.058 GB, free: 6.402 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/2.481, allocations: 4.553 MB / 1.063 GB, free: 1.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/2.482, allocations: 0 / 1.063 GB, free: 1.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008849/2.482, allocations: 147.8 kB / 1.063 GB, free: 1.676 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/2.485, allocations: 1.005 MB / 1.064 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/2.485, allocations: 23.91 kB / 1.064 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3674/2.852, allocations: 6.595 MB / 1.07 GB, free: 60.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/2.852, allocations: 1 kB / 1.07 GB, free: 60.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01091/2.863, allocations: 4.044 MB / 1.074 GB, free: 59.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/2.865, allocations: 407.6 kB / 1.075 GB, free: 59.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006959/2.865, allocations: 6.766 kB / 1.075 GB, free: 59.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/2.867, allocations: 72.16 kB / 1.075 GB, free: 59.81 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000394/2.867, allocations: 144.5 kB / 1.075 GB, free: 59.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003548/2.868, allocations: 52.53 kB / 1.075 GB, free: 59.81 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008978/2.869, allocations: 493.8 kB / 1.075 GB, free: 59.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.31e-07/2.869, allocations: 0 / 1.075 GB, free: 59.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005333/2.874, allocations: 1.056 MB / 1.076 GB, free: 59.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01281/2.887, allocations: 5.298 MB / 1.082 GB, free: 58.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008725/2.896, allocations: 3.398 MB / 1.085 GB, free: 58.49 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.896, allocations: 0 / 1.085 GB, free: 58.49 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002753/2.898, allocations: 1.271 MB / 1.086 GB, free: 58.26 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00303/2.901, allocations: 496.4 kB / 1.087 GB, free: 58.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/2.912, allocations: 2.97 MB / 1.089 GB, free: 57.74 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/2.913, allocations: 1.287 MB / 1.091 GB, free: 57.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002791/2.916, allocations: 0.5809 MB / 1.091 GB, free: 57.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008679/2.917, allocations: 489.5 kB / 1.092 GB, free: 57.01 MB / 442.7 MB Notification: Performance of SimCode: time 2.054e-06/2.917, allocations: 3.875 kB / 1.092 GB, free: 57.01 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1191/3.036, allocations: 49.28 MB / 1.14 GB, free: 54.63 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/3.036, allocations: 157.5 kB / 1.14 GB, free: 54.44 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.29/7.326, allocations: 0 / 1.14 GB, free: 54.44 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat