Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 194.9 MB / 211.1 MB, free: 8.551 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005445/0.0005445, allocations: 8 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4247, allocations: 44.51 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.498, allocations: 322.3 MB / 0.6161 GB, free: 95.91 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004215/1.498, allocations: 97.06 kB / 0.6162 GB, free: 95.87 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.757/3.255, allocations: 322.6 MB / 0.9312 GB, free: 53.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.995e-06/3.255, allocations: 0 / 0.9312 GB, free: 53.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000248/3.256, allocations: 44.61 kB / 0.9312 GB, free: 53.19 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.01021/3.266, allocations: 2.244 MB / 0.9334 GB, free: 52.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/3.266, allocations: 11.56 kB / 0.9335 GB, free: 52.21 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001186/3.267, allocations: 192.7 kB / 0.9336 GB, free: 52.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001661/3.269, allocations: 204.5 kB / 0.9338 GB, free: 52.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005246/3.274, allocations: 1.249 MB / 0.935 GB, free: 51.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/3.274, allocations: 98.62 kB / 0.9351 GB, free: 51.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007958/3.275, allocations: 128 kB / 0.9353 GB, free: 51.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006269/3.281, allocations: 1.94 MB / 0.9372 GB, free: 51.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.111e-05/3.282, allocations: 12.03 kB / 0.9372 GB, free: 51.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003134/3.282, allocations: 54.73 kB / 0.9372 GB, free: 51.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000248/3.282, allocations: 115 kB / 0.9373 GB, free: 51.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006499/3.289, allocations: 1.959 MB / 0.9392 GB, free: 51.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02142/3.31, allocations: 7.613 MB / 0.9467 GB, free: 47.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00339/3.314, allocations: 1.164 MB / 0.9478 GB, free: 47.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008746/3.322, allocations: 3.338 MB / 0.9511 GB, free: 46.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/3.322, allocations: 47.78 kB / 0.9511 GB, free: 46.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.679e-06/3.323, allocations: 3.719 kB / 0.9511 GB, free: 46.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.02304/3.346, allocations: 5.366 MB / 0.9564 GB, free: 45.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/3.346, allocations: 178.9 kB / 0.9565 GB, free: 45.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/3.348, allocations: 1.163 MB / 0.9577 GB, free: 44.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000491/3.349, allocations: 60.91 kB / 0.9577 GB, free: 44.87 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007801/3.35, allocations: 0.7261 MB / 0.9584 GB, free: 44.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008549/3.351, allocations: 469.2 kB / 0.9589 GB, free: 44.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/3.351, allocations: 36 kB / 0.9589 GB, free: 44.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/3.351, allocations: 380.4 kB / 0.9593 GB, free: 43.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002393/3.353, allocations: 0.7449 MB / 0.96 GB, free: 43.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003016/3.357, allocations: 1.208 MB / 0.9612 GB, free: 43.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00279/3.359, allocations: 0.8751 MB / 0.962 GB, free: 43.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.969e-05/3.359, allocations: 9.594 kB / 0.9621 GB, free: 43.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.01028/3.37, allocations: 2.414 MB / 0.9644 GB, free: 43.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001666/3.371, allocations: 5.2 MB / 0.9695 GB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.11e-05/3.372, allocations: 17.84 kB / 0.9695 GB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01311/3.385, allocations: 0.9532 MB / 0.9704 GB, free: 37.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00382/3.389, allocations: 359.7 kB / 0.9708 GB, free: 37.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005003/3.394, allocations: 2.886 MB / 0.9736 GB, free: 35.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004249/3.398, allocations: 138.5 kB / 0.9737 GB, free: 35.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008029/3.399, allocations: 82.11 kB / 0.9738 GB, free: 35.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/3.399, allocations: 3.844 kB / 0.9738 GB, free: 35.77 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00963/3.409, allocations: 2.136 MB / 0.9759 GB, free: 35.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.158e-05/3.409, allocations: 14.62 kB / 0.9759 GB, free: 35.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/3.419, allocations: 0.6814 MB / 0.9766 GB, free: 35.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003907/3.423, allocations: 366.1 kB / 0.9769 GB, free: 35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003897/3.427, allocations: 2.645 MB / 0.9795 GB, free: 32.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003913/3.431, allocations: 136.3 kB / 0.9796 GB, free: 32.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007398/3.432, allocations: 88.42 kB / 0.9797 GB, free: 32.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002201/3.434, allocations: 0.5177 MB / 0.9802 GB, free: 32.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007752/3.435, allocations: 164.8 kB / 0.9804 GB, free: 32.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/3.448, allocations: 2.344 MB / 0.9827 GB, free: 31.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.483e-05/3.448, allocations: 15.22 kB / 0.9827 GB, free: 31.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/3.448, allocations: 0 / 0.9827 GB, free: 31.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.167e-05/3.448, allocations: 11.62 kB / 0.9827 GB, free: 31.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01865/3.467, allocations: 3.932 MB / 0.9865 GB, free: 29.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/3.467, allocations: 3.531 kB / 0.9865 GB, free: 29.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00316/3.47, allocations: 237.8 kB / 0.9868 GB, free: 29.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01018/3.48, allocations: 0.9055 MB / 0.9877 GB, free: 29.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005672/3.481, allocations: 37.97 kB / 0.9877 GB, free: 29.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004897/3.486, allocations: 2.83 MB / 0.9905 GB, free: 27.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/3.486, allocations: 3.938 kB / 0.9905 GB, free: 27.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008912/3.495, allocations: 3.218 MB / 0.9936 GB, free: 25.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000817/3.496, allocations: 263.6 kB / 0.9939 GB, free: 25.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005272/3.496, allocations: 41.39 kB / 0.9939 GB, free: 25.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001873/3.498, allocations: 107.1 kB / 0.994 GB, free: 25.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004182/3.498, allocations: 147.8 kB / 0.9941 GB, free: 25.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002021/3.499, allocations: 62.16 kB / 0.9942 GB, free: 25.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001833/3.5, allocations: 0.8903 MB / 0.9951 GB, free: 24.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.42e-07/3.5, allocations: 3.906 kB / 0.9951 GB, free: 24.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00615/3.507, allocations: 1.355 MB / 0.9964 GB, free: 24.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0124/3.519, allocations: 5.282 MB / 1.002 GB, free: 21.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009576/3.529, allocations: 3.037 MB / 1.005 GB, free: 18.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/3.529, allocations: 9.219 kB / 1.005 GB, free: 18.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003197/3.532, allocations: 1.065 MB / 1.006 GB, free: 17.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005716/3.538, allocations: 0.6687 MB / 1.006 GB, free: 17.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/3.554, allocations: 14.43 MB / 1.02 GB, free: 18.88 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001293/3.555, allocations: 1.431 MB / 1.022 GB, free: 17.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004236/3.56, allocations: 0.7147 MB / 1.022 GB, free: 17.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/3.561, allocations: 0.6503 MB / 1.023 GB, free: 16.61 MB / 426.7 MB Notification: Performance of SimCode: time 1.382e-06/3.561, allocations: 0 / 1.023 GB, free: 16.61 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4848/4.046, allocations: 61.08 MB / 1.083 GB, free: 60.85 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000315/4.046, allocations: 272.5 kB / 1.083 GB, free: 60.49 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.861/9.907, allocations: 0 / 1.083 GB, free: 60.49 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat