Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.0009235/0.0009236, allocations: 177.7 kB / 8.698 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.507/1.507, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.001078/0.001078, allocations: 82.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.895e-05/1.907e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0905/0.09053, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.17/1.26, allocations: 409.4 MB / 0.7545 GB, free: 103.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003183/1.261, allocations: 80.45 kB / 0.7545 GB, free: 103.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7596/2.02, allocations: 211.1 MB / 0.9607 GB, free: 69.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.593e-06/2.02, allocations: 0 / 0.9607 GB, free: 69.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000137/2.021, allocations: 36.16 kB / 0.9607 GB, free: 69.23 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006414/2.027, allocations: 1.795 MB / 0.9625 GB, free: 67.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/2.027, allocations: 8.031 kB / 0.9625 GB, free: 67.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008456/2.028, allocations: 174.2 kB / 0.9627 GB, free: 67.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/2.03, allocations: 0.9798 MB / 0.9636 GB, free: 66.22 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/2.03, allocations: 202.5 kB / 0.9638 GB, free: 65.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003852/2.03, allocations: 60 kB / 0.9639 GB, free: 65.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002292/2.033, allocations: 1.601 MB / 0.9654 GB, free: 64.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002525/2.035, allocations: 1.639 MB / 0.967 GB, free: 62.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/2.035, allocations: 0 / 0.967 GB, free: 62.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003873/2.036, allocations: 7.984 kB / 0.967 GB, free: 62.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001243/2.036, allocations: 105.9 kB / 0.9671 GB, free: 62.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01091/2.047, allocations: 6.529 MB / 0.9735 GB, free: 55.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/2.049, allocations: 1.379 MB / 0.9749 GB, free: 54.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/2.05, allocations: 0.8055 MB / 0.9756 GB, free: 53.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005223/2.055, allocations: 3.856 MB / 0.9794 GB, free: 49.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/2.055, allocations: 51.55 kB / 0.9795 GB, free: 49.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 2.705e-06/2.055, allocations: 0 / 0.9795 GB, free: 49.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.02157/2.077, allocations: 6.422 MB / 0.9857 GB, free: 42.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/2.077, allocations: 175.5 kB / 0.9859 GB, free: 42.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/2.078, allocations: 0.6604 MB / 0.9865 GB, free: 42.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001772/2.079, allocations: 33.64 kB / 0.9866 GB, free: 42.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003735/2.079, allocations: 0.5347 MB / 0.9871 GB, free: 41.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003419/2.079, allocations: 397.7 kB / 0.9875 GB, free: 41.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.216e-05/2.079, allocations: 0 / 0.9875 GB, free: 41.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/2.08, allocations: 353.9 kB / 0.9878 GB, free: 40.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/2.081, allocations: 0.7224 MB / 0.9885 GB, free: 40.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/2.082, allocations: 0.9627 MB / 0.9895 GB, free: 39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009086/2.091, allocations: 2.348 MB / 0.9918 GB, free: 36.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.176e-05/2.091, allocations: 4 kB / 0.9918 GB, free: 36.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01311/2.104, allocations: 3.84 MB / 0.9955 GB, free: 32.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006836/2.105, allocations: 2.182 MB / 0.9976 GB, free: 30.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/2.105, allocations: 4 kB / 0.9976 GB, free: 30.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002158/2.107, allocations: 0.9797 MB / 0.9986 GB, free: 29.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/2.108, allocations: 215.7 kB / 0.9988 GB, free: 29.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007584/2.116, allocations: 6.588 MB / 1.005 GB, free: 22.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001992/2.118, allocations: 63.94 kB / 1.005 GB, free: 22.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/2.118, allocations: 63.95 kB / 1.005 GB, free: 22.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/2.118, allocations: 7.281 kB / 1.005 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01146/2.129, allocations: 3.587 MB / 1.009 GB, free: 18.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/2.129, allocations: 12 kB / 1.009 GB, free: 18.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001885/2.131, allocations: 0.9216 MB / 1.01 GB, free: 17.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/2.132, allocations: 227.6 kB / 1.01 GB, free: 17.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006371/2.139, allocations: 6.362 MB / 1.016 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/2.14, allocations: 71.78 kB / 1.016 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/2.141, allocations: 55.97 kB / 1.016 GB, free: 10.64 MB / 426.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.0004553/2.141, allocations: 144.7 kB / 1.016 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006883/2.148, allocations: 2.654 MB / 1.019 GB, free: 7.816 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003752/2.148, allocations: 122.7 kB / 1.019 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007472/2.156, allocations: 3.065 MB / 1.022 GB, free: 4.605 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.276e-05/2.156, allocations: 19.92 kB / 1.022 GB, free: 4.586 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/2.156, allocations: 8 kB / 1.022 GB, free: 4.578 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/2.156, allocations: 3.984 kB / 1.022 GB, free: 4.574 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.32/2.476, allocations: 4.541 MB / 1.027 GB, free: 77.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.268e-05/2.476, allocations: 0 / 1.027 GB, free: 77.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/2.478, allocations: 145.9 kB / 1.027 GB, free: 77.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003452/2.481, allocations: 1.011 MB / 1.028 GB, free: 77.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003944/2.481, allocations: 20.48 kB / 1.028 GB, free: 77.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009527/2.491, allocations: 6.591 MB / 1.034 GB, free: 73.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/2.491, allocations: 0 / 1.034 GB, free: 73.76 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/2.503, allocations: 4.053 MB / 1.038 GB, free: 73.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001311/2.504, allocations: 405.1 kB / 1.039 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004397/2.505, allocations: 1.188 kB / 1.039 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/2.506, allocations: 73 kB / 1.039 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004291/2.507, allocations: 144.8 kB / 1.039 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001898/2.507, allocations: 50.06 kB / 1.039 GB, free: 73.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009677/2.508, allocations: 497.2 kB / 1.039 GB, free: 73.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/2.508, allocations: 0 / 1.039 GB, free: 73.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005547/2.513, allocations: 1.042 MB / 1.04 GB, free: 73.4 MB / 426.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.01364/2.527, allocations: 5.299 MB / 1.045 GB, free: 72.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00748/2.535, allocations: 3.41 MB / 1.049 GB, free: 72.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/2.535, allocations: 0 / 1.049 GB, free: 72.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002509/2.537, allocations: 1.271 MB / 1.05 GB, free: 71.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/2.54, allocations: 494.2 kB / 1.051 GB, free: 71.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009213/2.549, allocations: 2.95 MB / 1.053 GB, free: 71.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009467/2.55, allocations: 1.293 MB / 1.055 GB, free: 70.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002269/2.553, allocations: 0.5819 MB / 1.055 GB, free: 70.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006196/2.553, allocations: 482.6 kB / 1.056 GB, free: 70.68 MB / 426.7 MB Notification: Performance of SimCode: time 1.323e-06/2.553, allocations: 0 / 1.056 GB, free: 70.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09467/2.648, allocations: 49.27 MB / 1.104 GB, free: 67.91 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/2.648, allocations: 174 kB / 1.104 GB, free: 67.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.055/6.703, allocations: 2.406 kB / 1.104 GB, free: 67.71 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat