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.EmptyTanks.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.EmptyTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003626, allocations: 12 kB / 264.1 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3472, allocations: 44.5 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.137/1.484, allocations: 316.5 MB / 0.6104 GB, free: 101.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003501/1.484, allocations: 85.59 kB / 0.6105 GB, free: 101.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7745/2.259, allocations: 130.7 MB / 0.7381 GB, free: 104.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.805e-06/2.259, allocations: 0 / 0.7381 GB, free: 104.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.473e-05/2.259, allocations: 25.81 kB / 0.7381 GB, free: 104.1 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.004362/2.264, allocations: 1.179 MB / 0.7393 GB, free: 103.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/2.264, allocations: 10.75 kB / 0.7393 GB, free: 103.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000407/2.264, allocations: 103 kB / 0.7394 GB, free: 103.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004822/2.265, allocations: 94.61 kB / 0.7395 GB, free: 103.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/2.267, allocations: 0.6578 MB / 0.7401 GB, free: 103.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/2.267, allocations: 107.5 kB / 0.7402 GB, free: 103.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/2.267, allocations: 54.81 kB / 0.7403 GB, free: 103.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002323/2.269, allocations: 0.8949 MB / 0.7412 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/2.269, allocations: 3.609 kB / 0.7412 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/2.27, allocations: 24.91 kB / 0.7412 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001424/2.27, allocations: 52.34 kB / 0.7412 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002226/2.272, allocations: 0.8307 MB / 0.742 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008711/2.281, allocations: 3.309 MB / 0.7453 GB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/2.282, allocations: 0.6578 MB / 0.7459 GB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004529/2.287, allocations: 2.057 MB / 0.7479 GB, free: 100.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/2.287, allocations: 41.59 kB / 0.748 GB, free: 100.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 4.599e-06/2.287, allocations: 0 / 0.748 GB, free: 100.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.01258/2.3, allocations: 2.847 MB / 0.7507 GB, free: 100.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/2.3, allocations: 86.42 kB / 0.7508 GB, free: 100 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/2.301, allocations: 0.5957 MB / 0.7514 GB, free: 99.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001912/2.301, allocations: 41.17 kB / 0.7514 GB, free: 99.87 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002884/2.301, allocations: 340.6 kB / 0.7518 GB, free: 99.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002879/2.302, allocations: 230.1 kB / 0.752 GB, free: 99.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.367e-05/2.302, allocations: 14.59 kB / 0.752 GB, free: 99.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/2.302, allocations: 387.2 kB / 0.7524 GB, free: 99.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/2.303, allocations: 357.6 kB / 0.7527 GB, free: 99.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/2.304, allocations: 0.5004 MB / 0.7532 GB, free: 99.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/2.305, allocations: 402.1 kB / 0.7536 GB, free: 99.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/2.305, allocations: 6.469 kB / 0.7536 GB, free: 99.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003366/2.309, allocations: 1.147 MB / 0.7547 GB, free: 99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004118/2.309, allocations: 1.579 MB / 0.7563 GB, free: 97.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/2.309, allocations: 3.5 kB / 0.7563 GB, free: 97.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002115/2.311, allocations: 445.3 kB / 0.7567 GB, free: 97.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/2.313, allocations: 160.6 kB / 0.7568 GB, free: 97.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002129/2.315, allocations: 1.034 MB / 0.7578 GB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/2.316, allocations: 39.8 kB / 0.7579 GB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/2.317, allocations: 34.17 kB / 0.7579 GB, free: 96.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/2.317, allocations: 6.906 kB / 0.7579 GB, free: 96.82 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002676/2.319, allocations: 0.9249 MB / 0.7588 GB, free: 96.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/2.319, allocations: 3.969 kB / 0.7588 GB, free: 96.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/2.321, allocations: 248.3 kB / 0.7591 GB, free: 96.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/2.322, allocations: 160.9 kB / 0.7592 GB, free: 96.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/2.323, allocations: 0.82 MB / 0.76 GB, free: 96.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/2.324, allocations: 37.61 kB / 0.7601 GB, free: 96.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/2.324, allocations: 33.66 kB / 0.7601 GB, free: 96.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008281/2.325, allocations: 334.2 kB / 0.7604 GB, free: 96.06 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004566/2.326, allocations: 82.84 kB / 0.7605 GB, free: 96.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00323/2.329, allocations: 1.088 MB / 0.7615 GB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/2.329, allocations: 7.906 kB / 0.7616 GB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/2.329, allocations: 3.953 kB / 0.7616 GB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/2.329, allocations: 3.328 kB / 0.7616 GB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005002/2.334, allocations: 2.001 MB / 0.7635 GB, free: 95.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/2.334, allocations: 0 / 0.7635 GB, free: 95.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/2.335, allocations: 118.8 kB / 0.7636 GB, free: 95.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00193/2.337, allocations: 446.5 kB / 0.7641 GB, free: 95.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/2.337, allocations: 16.94 kB / 0.7641 GB, free: 95.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/2.339, allocations: 1.037 MB / 0.7651 GB, free: 95.08 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/2.339, allocations: 6.094 kB / 0.7651 GB, free: 95.08 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003978/2.343, allocations: 1.593 MB / 0.7666 GB, free: 94.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007617/2.344, allocations: 248.7 kB / 0.7669 GB, free: 94.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/2.344, allocations: 9.875 kB / 0.7669 GB, free: 94.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/2.345, allocations: 54.89 kB / 0.7669 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/2.345, allocations: 60.84 kB / 0.767 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/2.346, allocations: 26.91 kB / 0.767 GB, free: 94.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009104/2.346, allocations: 477.7 kB / 0.7675 GB, free: 94.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.346, allocations: 0 / 0.7675 GB, free: 94.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002858/2.349, allocations: 0.6338 MB / 0.7681 GB, free: 94.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00608/2.355, allocations: 2.629 MB / 0.7707 GB, free: 93.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004478/2.36, allocations: 1.355 MB / 0.772 GB, free: 93.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/2.36, allocations: 2.844 kB / 0.772 GB, free: 93.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00162/2.362, allocations: 468.3 kB / 0.7724 GB, free: 93.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003038/2.365, allocations: 360.7 kB / 0.7728 GB, free: 92.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008232/2.373, allocations: 5.425 MB / 0.7781 GB, free: 88.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000583/2.374, allocations: 1.009 MB / 0.7791 GB, free: 88.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00193/2.376, allocations: 302.9 kB / 0.7794 GB, free: 88.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006547/2.376, allocations: 286.4 kB / 0.7796 GB, free: 87.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/2.376, allocations: 2.406 kB / 0.7796 GB, free: 87.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1126/2.489, allocations: 28.99 MB / 0.808 GB, free: 71.59 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002324/2.489, allocations: 198.1 kB / 0.8081 GB, free: 71.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.221/6.71, allocations: 0 / 0.8081 GB, free: 71.35 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat