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.ThreeTanks.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.ThreeTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.183/2.183, allocations: 194.9 MB / 211.1 MB, free: 8.754 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007105/0.0007105, allocations: 8 kB / 264.1 MB, free: 3.68 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3367, allocations: 44.51 MB / 308.6 MB, free: 12.7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.127/1.464, allocations: 316.7 MB / 0.6106 GB, free: 101.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003044/1.465, allocations: 78.19 kB / 0.6107 GB, free: 101.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393/2.858, allocations: 267.7 MB / 0.8721 GB, free: 7.113 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.755e-06/2.858, allocations: 3.938 kB / 0.8721 GB, free: 7.109 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002137/2.858, allocations: 35.94 kB / 0.8721 GB, free: 7.074 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.00976/2.868, allocations: 1.997 MB / 0.8741 GB, free: 5.023 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/2.868, allocations: 12.03 kB / 0.8741 GB, free: 5.012 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/2.869, allocations: 164.5 kB / 0.8743 GB, free: 4.844 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/2.87, allocations: 174.1 kB / 0.8744 GB, free: 4.672 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00465/2.875, allocations: 1.113 MB / 0.8755 GB, free: 3.516 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/2.875, allocations: 179 kB / 0.8757 GB, free: 3.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007121/2.876, allocations: 111.9 kB / 0.8758 GB, free: 3.211 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005574/2.881, allocations: 1.76 MB / 0.8775 GB, free: 1.391 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.833e-05/2.882, allocations: 4 kB / 0.8775 GB, free: 1.387 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002877/2.882, allocations: 43.91 kB / 0.8776 GB, free: 1.344 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002587/2.882, allocations: 113.9 kB / 0.8777 GB, free: 1.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3522/3.234, allocations: 1.765 MB / 0.8794 GB, free: 54.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02209/3.257, allocations: 6.392 MB / 0.8856 GB, free: 53.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003494/3.26, allocations: 1.18 MB / 0.8868 GB, free: 53.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/3.271, allocations: 4.173 MB / 0.8909 GB, free: 50.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.589e-05/3.271, allocations: 50.06 kB / 0.8909 GB, free: 50.72 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00206/3.273, allocations: 211.7 kB / 0.8911 GB, free: 50.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 8.076e-06/3.273, allocations: 0 / 0.8911 GB, free: 50.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.03331/3.306, allocations: 5.366 MB / 0.8963 GB, free: 50.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/3.307, allocations: 139 kB / 0.8965 GB, free: 49.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/3.309, allocations: 1.107 MB / 0.8976 GB, free: 49.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004674/3.31, allocations: 50.86 kB / 0.8976 GB, free: 49.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006651/3.31, allocations: 0.5996 MB / 0.8982 GB, free: 49.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000758/3.311, allocations: 385.9 kB / 0.8986 GB, free: 49.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/3.311, allocations: 26.38 kB / 0.8986 GB, free: 49.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/3.312, allocations: 366.1 kB / 0.8989 GB, free: 49.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/3.314, allocations: 0.6405 MB / 0.8996 GB, free: 49.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002431/3.316, allocations: 0.9723 MB / 0.9005 GB, free: 48.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/3.319, allocations: 0.7493 MB / 0.9012 GB, free: 48.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.95e-05/3.319, allocations: 6.25 kB / 0.9012 GB, free: 48.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00745/3.326, allocations: 2.114 MB / 0.9033 GB, free: 48.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009329/3.327, allocations: 3.516 MB / 0.9067 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.836e-05/3.327, allocations: 11.78 kB / 0.9068 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01333/3.341, allocations: 1.235 MB / 0.908 GB, free: 44.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/3.343, allocations: 293.8 kB / 0.9082 GB, free: 44.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003954/3.347, allocations: 1.532 MB / 0.9097 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003009/3.35, allocations: 89.23 kB / 0.9098 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005772/3.351, allocations: 70.44 kB / 0.9099 GB, free: 44.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/3.351, allocations: 3.969 kB / 0.9099 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005874/3.357, allocations: 1.791 MB / 0.9116 GB, free: 44.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.484e-05/3.357, allocations: 10.72 kB / 0.9117 GB, free: 44.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01158/3.368, allocations: 0.9657 MB / 0.9126 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002525/3.371, allocations: 301 kB / 0.9129 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/3.374, allocations: 1.231 MB / 0.9141 GB, free: 43.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/3.376, allocations: 87.27 kB / 0.9142 GB, free: 43.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005099/3.377, allocations: 65.38 kB / 0.9142 GB, free: 43.72 MB / 410.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 () * Number of clocked 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001551/3.379, allocations: 459.6 kB / 0.9147 GB, free: 43.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005836/3.379, allocations: 149.5 kB / 0.9148 GB, free: 43.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007532/3.387, allocations: 2.023 MB / 0.9168 GB, free: 43.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/3.387, allocations: 19.16 kB / 0.9168 GB, free: 43.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/3.387, allocations: 0 / 0.9168 GB, free: 43.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.726e-05/3.387, allocations: 11.69 kB / 0.9168 GB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/3.398, allocations: 3.433 MB / 0.9202 GB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/3.398, allocations: 0 / 0.9202 GB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001949/3.4, allocations: 197.5 kB / 0.9204 GB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006807/3.407, allocations: 0.9595 MB / 0.9213 GB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004162/3.407, allocations: 31.8 kB / 0.9213 GB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003419/3.41, allocations: 1.559 MB / 0.9228 GB, free: 42.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/3.41, allocations: 2.562 kB / 0.9228 GB, free: 42.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008077/3.419, allocations: 2.752 MB / 0.9255 GB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/3.42, allocations: 396.7 kB / 0.9259 GB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006508/3.421, allocations: 33.36 kB / 0.9259 GB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002616/3.424, allocations: 83.16 kB / 0.926 GB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005702/3.424, allocations: 100.2 kB / 0.9261 GB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002519/3.425, allocations: 52.05 kB / 0.9262 GB, free: 41.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001985/3.427, allocations: 0.8403 MB / 0.927 GB, free: 41.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.343e-06/3.427, allocations: 0 / 0.927 GB, free: 41.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006614/3.433, allocations: 1.24 MB / 0.9282 GB, free: 41.87 MB / 410.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 () * Number of clocked 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.01316/3.446, allocations: 4.276 MB / 0.9324 GB, free: 41.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01065/3.457, allocations: 2.574 MB / 0.9349 GB, free: 41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/3.457, allocations: 3.562 kB / 0.9349 GB, free: 41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003686/3.461, allocations: 0.8317 MB / 0.9357 GB, free: 40.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005665/3.467, allocations: 0.5923 MB / 0.9363 GB, free: 40.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01679/3.484, allocations: 10.79 MB / 0.9468 GB, free: 33.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/3.485, allocations: 1.326 MB / 0.9481 GB, free: 32.39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003967/3.489, allocations: 0.5611 MB / 0.9487 GB, free: 32.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/3.49, allocations: 0.5432 MB / 0.9492 GB, free: 32.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/3.49, allocations: 0 / 0.9492 GB, free: 32.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1409/3.631, allocations: 53.88 MB / 1.002 GB, free: 18.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000266/3.632, allocations: 194.1 kB / 1.002 GB, free: 18.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.176/8.807, allocations: 7.938 kB / 1.002 GB, free: 18.56 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat