Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestFiles.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.515/2.515, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.435e-05, allocations: 4 kB / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.406, allocations: 54.85 MB / 364.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1655/0.5716, allocations: 79.61 MB / 444.2 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.5719, allocations: 60.62 kB / 444.3 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008492/0.5804, allocations: 1.94 MB / 446.2 MB, free: 14.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.618e-06/0.5805, allocations: 3.984 kB / 446.2 MB, free: 14.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.5805, allocations: 0 / 446.2 MB, free: 14.79 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004356/0.5809, allocations: 364.2 kB / 446.6 MB, free: 14.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.581, allocations: 8.031 kB / 446.6 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.318e-05/0.581, allocations: 30.56 kB / 446.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.88e-05/0.5811, allocations: 8.609 kB / 446.6 MB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.5812, allocations: 163.1 kB / 446.8 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.5812, allocations: 0 / 446.8 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.5813, allocations: 0 / 446.8 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.872e-05/0.5814, allocations: 33.64 kB / 446.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.5814, allocations: 0 / 446.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.5814, allocations: 3.984 kB / 446.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-06/0.5814, allocations: 12.64 kB / 446.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.093e-05/0.5815, allocations: 0 / 446.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.5816, allocations: 143.5 kB / 447 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.204e-05/0.5817, allocations: 22.61 kB / 447 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.5817, allocations: 4.859 kB / 447 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.5818, allocations: 0 / 447 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.482e-05/0.5818, allocations: 66.53 kB / 447.1 MB, free: 13.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.5818, allocations: 7.938 kB / 447.1 MB, free: 13.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001863/0.582, allocations: 61.08 kB / 447.1 MB, free: 13.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.5821, allocations: 81.11 kB / 447.2 MB, free: 13.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.074e-05/0.5822, allocations: 85 kB / 447.3 MB, free: 13.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.5822, allocations: 25.7 kB / 447.3 MB, free: 13.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.403e-05/0.5823, allocations: 150.6 kB / 447.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.5823, allocations: 4 kB / 447.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.5823, allocations: 0 / 447.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.5825, allocations: 318.8 kB / 447.8 MB, free: 13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.849e-05/0.5825, allocations: 4 kB / 447.8 MB, free: 13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.456e-06/0.5825, allocations: 0 / 447.8 MB, free: 13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.552e-05/0.5826, allocations: 29.69 kB / 447.8 MB, free: 12.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.5826, allocations: 0 / 447.8 MB, free: 12.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001297/0.5827, allocations: 63.34 kB / 447.9 MB, free: 12.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.943e-05/0.5828, allocations: 33.7 kB / 447.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.5828, allocations: 0 / 447.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.5828, allocations: 96 / 447.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-06/0.5828, allocations: 4 kB / 447.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.5829, allocations: 0 / 447.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.151e-05/0.5829, allocations: 0.8438 kB / 447.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.5829, allocations: 0 / 447.9 MB, free: 12.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.583, allocations: 142.6 kB / 448.1 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.759e-06/0.583, allocations: 0 / 448.1 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.79e-05/0.5831, allocations: 7.078 kB / 448.1 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.5831, allocations: 0 / 448.1 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.5831, allocations: 0 / 448.1 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.5831, allocations: 8 kB / 448.1 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.5833, allocations: 154.3 kB / 448.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.5833, allocations: 0.8438 kB / 448.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.5833, allocations: 3.938 kB / 448.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.5833, allocations: 0 / 448.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.5833, allocations: 0 / 448.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.5833, allocations: 6.859 kB / 448.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5833, allocations: 0 / 448.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.5835, allocations: 98.72 kB / 448.3 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.5835, allocations: 81.11 kB / 448.4 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.5836, allocations: 0 / 448.4 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/0.5836, allocations: 0.5625 kB / 448.4 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.938e-05/0.5836, allocations: 0 / 448.4 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.5836, allocations: 0 / 448.4 MB, free: 12.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.92e-05/0.5837, allocations: 75.28 kB / 448.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5837, allocations: 4 kB / 448.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003688/0.5841, allocations: 47.98 kB / 448.5 MB, free: 12.13 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001021/0.5851, allocations: 0.7639 MB / 449.3 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.5853, allocations: 59.41 kB / 449.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.5853, allocations: 4 kB / 449.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.659e-05/0.5854, allocations: 51.41 kB / 449.4 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001128/0.5855, allocations: 4 kB / 449.4 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000449/0.5859, allocations: 136.3 kB / 449.6 MB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.5863, allocations: 0.6772 MB / 450.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.82e-05/0.5864, allocations: 7.438 kB / 450.2 MB, free: 10.34 MB / 378.7 MB Notification: Performance of SimCode: time 3.847e-06/0.5864, allocations: 0 / 450.2 MB, free: 10.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.379/2.966, allocations: 1.228 MB / 451.5 MB, free: 9.117 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestFiles_res.mat does not exist to compare? outputFormat=mat