Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.048/2.048, allocations: 194.9 MB / 211.1 MB, free: 8.57 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005474/0.0005476, allocations: 8 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.309, allocations: 44.5 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.244/1.553, allocations: 405 MB / 0.6969 GB, free: 20.55 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/1.553, allocations: 88.58 kB / 0.6969 GB, free: 20.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.428/2.981, allocations: 210.8 MB / 0.9028 GB, free: 73.47 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.228e-06/2.981, allocations: 1.875 kB / 0.9028 GB, free: 73.47 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001427/2.982, allocations: 35.31 kB / 0.9028 GB, free: 73.47 MB / 410.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.008963/2.991, allocations: 1.938 MB / 0.9047 GB, free: 72.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/2.991, allocations: 8.938 kB / 0.9047 GB, free: 72.64 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008924/2.992, allocations: 171 kB / 0.9049 GB, free: 72.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008838/2.993, allocations: 171.1 kB / 0.905 GB, free: 72.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003804/2.996, allocations: 0.9957 MB / 0.906 GB, free: 72.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002629/2.997, allocations: 235 kB / 0.9062 GB, free: 72.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004549/2.997, allocations: 97.17 kB / 0.9063 GB, free: 72.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005002/3.002, allocations: 1.806 MB / 0.9081 GB, free: 71.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.899e-05/3.002, allocations: 2.062 kB / 0.9081 GB, free: 71.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002706/3.003, allocations: 43.44 kB / 0.9081 GB, free: 71.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000198/3.003, allocations: 102.3 kB / 0.9082 GB, free: 71.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005531/3.008, allocations: 1.757 MB / 0.9099 GB, free: 71.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02092/3.029, allocations: 6.838 MB / 0.9166 GB, free: 69.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004458/3.034, allocations: 1.43 MB / 0.918 GB, free: 69.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00984/3.044, allocations: 3.942 MB / 0.9219 GB, free: 68.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/3.044, allocations: 48.94 kB / 0.9219 GB, free: 68.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 4.939e-06/3.044, allocations: 0 / 0.9219 GB, free: 68.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.0257/3.069, allocations: 5.887 MB / 0.9277 GB, free: 67.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/3.07, allocations: 170.7 kB / 0.9278 GB, free: 67.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002051/3.072, allocations: 0.9873 MB / 0.9288 GB, free: 66.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005065/3.072, allocations: 44.2 kB / 0.9288 GB, free: 66.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005234/3.073, allocations: 0.5315 MB / 0.9294 GB, free: 66.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006842/3.073, allocations: 412.3 kB / 0.9297 GB, free: 66.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/3.074, allocations: 28.25 kB / 0.9298 GB, free: 66.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/3.074, allocations: 359.3 kB / 0.9301 GB, free: 66.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002207/3.076, allocations: 0.7675 MB / 0.9309 GB, free: 66.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002484/3.079, allocations: 1.024 MB / 0.9319 GB, free: 65.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002521/3.081, allocations: 0.8289 MB / 0.9327 GB, free: 65.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/3.081, allocations: 0 / 0.9327 GB, free: 65.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.008388/3.09, allocations: 2.457 MB / 0.9351 GB, free: 65.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007806/3.09, allocations: 2.368 MB / 0.9374 GB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.587e-05/3.09, allocations: 3.906 kB / 0.9374 GB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007913/3.098, allocations: 1.223 MB / 0.9386 GB, free: 63.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/3.101, allocations: 215.6 kB / 0.9388 GB, free: 63.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/3.113, allocations: 6.248 MB / 0.9449 GB, free: 58.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003719/3.117, allocations: 99.92 kB / 0.945 GB, free: 58.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007128/3.118, allocations: 63.22 kB / 0.9451 GB, free: 58.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/3.118, allocations: 3.875 kB / 0.9451 GB, free: 58.84 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009586/3.127, allocations: 2.045 MB / 0.9471 GB, free: 58.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.1e-05/3.128, allocations: 8.406 kB / 0.9471 GB, free: 58.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004923/3.132, allocations: 0.7917 MB / 0.9478 GB, free: 58.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002739/3.135, allocations: 227.4 kB / 0.948 GB, free: 58.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/3.147, allocations: 6.804 MB / 0.9547 GB, free: 53.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/3.15, allocations: 95.22 kB / 0.9548 GB, free: 53.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003195/3.15, allocations: 59.8 kB / 0.9548 GB, free: 53.67 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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.001591/3.152, allocations: 456.2 kB / 0.9553 GB, free: 53.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006212/3.152, allocations: 143.4 kB / 0.9554 GB, free: 53.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/3.164, allocations: 2.606 MB / 0.958 GB, free: 53.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.491e-05/3.164, allocations: 22.75 kB / 0.958 GB, free: 53.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/3.164, allocations: 3.094 kB / 0.958 GB, free: 53.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.957e-05/3.164, allocations: 7.547 kB / 0.958 GB, free: 53.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/3.18, allocations: 4.176 MB / 0.9621 GB, free: 52.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/3.18, allocations: 0 / 0.9621 GB, free: 52.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/3.182, allocations: 149.9 kB / 0.9622 GB, free: 52.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006072/3.188, allocations: 1.223 MB / 0.9634 GB, free: 52.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004456/3.189, allocations: 41.84 kB / 0.9634 GB, free: 52.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00905/3.198, allocations: 6.254 MB / 0.9696 GB, free: 47.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/3.198, allocations: 0 / 0.9696 GB, free: 47.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01028/3.208, allocations: 3.595 MB / 0.9731 GB, free: 46.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/3.21, allocations: 435.6 kB / 0.9735 GB, free: 45.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000398/3.21, allocations: 30.31 kB / 0.9735 GB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/3.212, allocations: 99.45 kB / 0.9736 GB, free: 45.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005362/3.213, allocations: 142.9 kB / 0.9737 GB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/3.213, allocations: 49.98 kB / 0.9738 GB, free: 45.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001586/3.215, allocations: 0.7465 MB / 0.9745 GB, free: 45.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.21e-07/3.215, allocations: 0 / 0.9745 GB, free: 45.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005635/3.221, allocations: 1.121 MB / 0.9756 GB, free: 45.23 MB / 410.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) * Number of clocked states: 0 () * 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 {5 11,2 4,5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01331/3.234, allocations: 4.863 MB / 0.9804 GB, free: 43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0116/3.246, allocations: 3.601 MB / 0.9839 GB, free: 41.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/3.246, allocations: 2.531 kB / 0.9839 GB, free: 41.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005181/3.251, allocations: 1.353 MB / 0.9852 GB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004813/3.256, allocations: 0.5419 MB / 0.9857 GB, free: 40.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/3.273, allocations: 8.767 MB / 0.9943 GB, free: 34.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/3.274, allocations: 1.3 MB / 0.9956 GB, free: 33.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003651/3.278, allocations: 0.5785 MB / 0.9961 GB, free: 33.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/3.279, allocations: 0.5127 MB / 0.9966 GB, free: 33.03 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/3.279, allocations: 7.531 kB / 0.9966 GB, free: 33.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4502/3.729, allocations: 52.55 MB / 1.048 GB, free: 65.39 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003111/3.73, allocations: 254 kB / 1.048 GB, free: 65.06 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.306/9.036, allocations: 0 / 1.048 GB, free: 65.06 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat