Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.InverseModel.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.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.109/2.109, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003576, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09759, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.5088, allocations: 71.88 MB / 380.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.5092, allocations: 72.7 kB / 380.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009292/0.5185, allocations: 2.166 MB / 382.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5185, allocations: 1.094 kB / 382.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.5186, allocations: 1.469 kB / 382.6 MB, free: 14.04 MB / 314.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.000594/0.5192, allocations: 415.6 kB / 383.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.5192, allocations: 9.625 kB / 383.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.093e-05/0.5193, allocations: 38.06 kB / 383.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.186e-05/0.5193, allocations: 13.16 kB / 383.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.5196, allocations: 206.8 kB / 383.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.5196, allocations: 7 kB / 383.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.5197, allocations: 4.594 kB / 383.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.5199, allocations: 88.06 kB / 383.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.52, allocations: 0 / 383.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.52, allocations: 1.094 kB / 383.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.52, allocations: 1.125 kB / 383.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.5202, allocations: 44.61 kB / 383.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007104/0.5209, allocations: 411.5 kB / 383.9 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.5211, allocations: 65.62 kB / 383.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.5212, allocations: 3.359 kB / 383.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.5212, allocations: 33.28 kB / 384 MB, free: 12.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.5212, allocations: 4 kB / 384 MB, free: 12.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004013/0.5216, allocations: 102 kB / 384.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.5217, allocations: 58.39 kB / 384.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.5218, allocations: 125.8 kB / 384.2 MB, free: 12.74 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.5218, allocations: 30.3 kB / 384.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.642e-05/0.5219, allocations: 171.1 kB / 384.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.104e-05/0.5219, allocations: 22.58 kB / 384.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-06/0.5219, allocations: 3.938 kB / 384.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.872e-05/0.522, allocations: 321.8 kB / 384.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.462e-05/0.5221, allocations: 18.95 kB / 384.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.973e-05/0.5222, allocations: 20.3 kB / 384.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.5223, allocations: 24.44 kB / 384.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.5223, allocations: 5.125 kB / 384.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002476/0.5226, allocations: 80.56 kB / 384.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.5226, allocations: 5.266 kB / 384.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.5227, allocations: 1.297 kB / 384.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.5227, allocations: 3.953 kB / 384.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.523, allocations: 38.92 kB / 385 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.5231, allocations: 7.922 kB / 385 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.215e-05/0.5232, allocations: 20.94 kB / 385 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.5232, allocations: 1.719 kB / 385 MB, free: 12.16 MB / 314.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 9.622e-05/0.5233, allocations: 116.6 kB / 385.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.5233, allocations: 7.531 kB / 385.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.5234, allocations: 15.64 kB / 385.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.5234, allocations: 0 / 385.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.5234, allocations: 5.734 kB / 385.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5234, allocations: 1.688 kB / 385.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000234/0.5237, allocations: 193.7 kB / 385.3 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5237, allocations: 4 kB / 385.3 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.5239, allocations: 22 kB / 385.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.5239, allocations: 5.391 kB / 385.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.524, allocations: 4.984 kB / 385.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.524, allocations: 1.438 kB / 385.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.524, allocations: 0 / 385.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004243/0.5244, allocations: 211.8 kB / 385.6 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.404e-05/0.5245, allocations: 89.3 kB / 385.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.5245, allocations: 4.688 kB / 385.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.5247, allocations: 4.297 kB / 385.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.5247, allocations: 2.781 kB / 385.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.5247, allocations: 1.375 kB / 385.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.202e-05/0.5248, allocations: 113 kB / 385.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5248, allocations: 4.062 kB / 385.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003303/0.5252, allocations: 17.66 kB / 385.8 MB, free: 11.51 MB / 314.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.0005781/0.5258, allocations: 0.7387 MB / 386.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002434/0.526, allocations: 56.92 kB / 386.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5261, allocations: 1.375 kB / 386.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.5262, allocations: 21.73 kB / 386.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.5265, allocations: 21.25 kB / 386.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.5281, allocations: 0.7486 MB / 387.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.5283, allocations: 0.7062 MB / 388.1 MB, free: 9.676 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/0.5284, allocations: 30.45 kB / 388.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5284, allocations: 0 / 388.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.474/3.002, allocations: 1.631 MB / 389.8 MB, free: 9.559 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat