Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.InverseModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.6/1.6, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003486, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07888/0.07926, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3262/0.4055, allocations: 66.59 MB / 338.7 MB, free: 6.793 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.4058, allocations: 66.91 kB / 338.8 MB, free: 6.762 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009244/0.4151, allocations: 2.189 MB / 340.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4151, allocations: 2.516 kB / 340.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.4152, allocations: 4 kB / 340.9 MB, free: 4.887 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.00063/0.4158, allocations: 406 kB / 341.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.4159, allocations: 12.03 kB / 341.4 MB, free: 4.438 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.237e-05/0.4159, allocations: 41.94 kB / 341.4 MB, free: 4.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.416, allocations: 11.91 kB / 341.4 MB, free: 4.379 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.4163, allocations: 205.6 kB / 341.6 MB, free: 4.145 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.4163, allocations: 0 / 341.6 MB, free: 4.145 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.4163, allocations: 19.3 kB / 341.6 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.4166, allocations: 74.8 kB / 341.7 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.4166, allocations: 3.984 kB / 341.7 MB, free: 4.062 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.4166, allocations: 0 / 341.7 MB, free: 4.062 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.4166, allocations: 8.156 kB / 341.7 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.4168, allocations: 46.34 kB / 341.8 MB, free: 4.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007248/0.4176, allocations: 417.2 kB / 342.2 MB, free: 3.582 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.4178, allocations: 65.03 kB / 342.2 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.4178, allocations: 0 / 342.2 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.4179, allocations: 30.56 kB / 342.3 MB, free: 3.484 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.413e-06/0.4179, allocations: 0 / 342.3 MB, free: 3.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004109/0.4183, allocations: 111.7 kB / 342.4 MB, free: 3.387 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.4184, allocations: 55.41 kB / 342.4 MB, free: 3.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.4185, allocations: 132.8 kB / 342.6 MB, free: 3.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.4185, allocations: 29.02 kB / 342.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.984e-05/0.4186, allocations: 165.2 kB / 342.7 MB, free: 3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.4187, allocations: 23.33 kB / 342.8 MB, free: 2.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-06/0.4187, allocations: 0 / 342.8 MB, free: 2.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4188, allocations: 314.1 kB / 343.1 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.842e-05/0.4189, allocations: 30.73 kB / 343.1 MB, free: 2.645 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.979e-05/0.419, allocations: 23.34 kB / 343.1 MB, free: 2.625 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.4192, allocations: 24.31 kB / 343.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4192, allocations: 0 / 343.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002653/0.4194, allocations: 90.67 kB / 343.2 MB, free: 2.531 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.4195, allocations: 8 kB / 343.2 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.4195, allocations: 0 / 343.2 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.4195, allocations: 0 / 343.2 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000347/0.4199, allocations: 39.97 kB / 343.3 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.4199, allocations: 0 / 343.3 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.22e-05/0.42, allocations: 4 kB / 343.3 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.42, allocations: 4.203 kB / 343.3 MB, free: 2.477 MB / 266.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.4201, allocations: 121.8 kB / 343.4 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.4202, allocations: 15.69 kB / 343.4 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.4202, allocations: 12.25 kB / 343.4 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.4202, allocations: 0 / 343.4 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4202, allocations: 4 kB / 343.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4203, allocations: 0 / 343.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.4205, allocations: 204.9 kB / 343.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4205, allocations: 0 / 343.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.4208, allocations: 31.91 kB / 343.7 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4208, allocations: 0 / 343.7 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.4208, allocations: 4 kB / 343.7 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.4208, allocations: 3.938 kB / 343.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4209, allocations: 0 / 343.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004044/0.4213, allocations: 211.4 kB / 343.9 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.966e-05/0.4214, allocations: 84.95 kB / 344 MB, free: 1.746 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.4214, allocations: 8.062 kB / 344 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.4215, allocations: 3.984 kB / 344 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.846e-05/0.4216, allocations: 4 kB / 344 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.4216, allocations: 0 / 344 MB, free: 1.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.4217, allocations: 110.4 kB / 344.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4217, allocations: 0 / 344.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002974/0.422, allocations: 19.88 kB / 344.1 MB, free: 1.617 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006794/0.4227, allocations: 0.7439 MB / 344.9 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002322/0.423, allocations: 53.03 kB / 344.9 MB, free: 0.832 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.423, allocations: 4.062 kB / 344.9 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.4231, allocations: 26.98 kB / 344.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.4234, allocations: 20.11 kB / 345 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.4251, allocations: 0.7489 MB / 345.7 MB, free: 56 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.4254, allocations: 0.716 MB / 346.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.466e-05/0.4255, allocations: 28.73 kB / 346.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4255, allocations: 4 kB / 346.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.377/2.803, allocations: 1.633 MB / 348.1 MB, free: 13.68 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat