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 1.987/1.987, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.678e-05/3.699e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09805, allocations: 44.5 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3908/0.4889, allocations: 71.79 MB / 371.7 MB, free: 21.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.4893, allocations: 67.02 kB / 371.8 MB, free: 21.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01024/0.4995, allocations: 2.163 MB / 374 MB, free: 20.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4996, allocations: 0 / 374 MB, free: 20.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.4996, allocations: 2.469 kB / 374 MB, free: 20.93 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.0005172/0.5001, allocations: 393.6 kB / 374.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.5002, allocations: 9.203 kB / 374.4 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.787e-05/0.5003, allocations: 38.08 kB / 374.4 MB, free: 20.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.657e-05/0.5003, allocations: 14.16 kB / 374.4 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.5006, allocations: 207.3 kB / 374.6 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.5007, allocations: 3.672 kB / 374.6 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.537e-05/0.5007, allocations: 12.16 kB / 374.6 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002049/0.5009, allocations: 72.56 kB / 374.7 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.501, allocations: 0 / 374.7 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.501, allocations: 4.5 kB / 374.7 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.501, allocations: 2.141 kB / 374.7 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.5011, allocations: 31.83 kB / 374.7 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007413/0.5019, allocations: 419.5 kB / 375.1 MB, free: 19.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.502, allocations: 53.61 kB / 375.2 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.771e-05/0.5021, allocations: 24.05 kB / 375.2 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.5022, allocations: 1.734 kB / 375.2 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.5022, allocations: 38.52 kB / 375.3 MB, free: 19.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 2.464e-06/0.5022, allocations: 1.094 kB / 375.3 MB, free: 19.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002463/0.5025, allocations: 71.03 kB / 375.3 MB, free: 19.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/0.5025, allocations: 52.47 kB / 375.4 MB, free: 19.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.5027, allocations: 127.8 kB / 375.5 MB, free: 19.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.5027, allocations: 31.61 kB / 375.5 MB, free: 19.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.5028, allocations: 170.8 kB / 375.7 MB, free: 19.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.216e-05/0.5028, allocations: 15.25 kB / 375.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.141e-06/0.5028, allocations: 0 / 375.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.109e-05/0.5029, allocations: 320.7 kB / 376 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.241e-05/0.503, allocations: 16.31 kB / 376 MB, free: 19.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.162e-05/0.503, allocations: 17.55 kB / 376.1 MB, free: 19.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.51e-05/0.5031, allocations: 18.28 kB / 376.1 MB, free: 19.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.5031, allocations: 1.25 kB / 376.1 MB, free: 19.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001821/0.5033, allocations: 74.81 kB / 376.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.5033, allocations: 7.5 kB / 376.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.5034, allocations: 0 / 376.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.5034, allocations: 3.953 kB / 376.2 MB, free: 19.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004037/0.5038, allocations: 46.92 kB / 376.2 MB, free: 19.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.5038, allocations: 0 / 376.2 MB, free: 19.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.5039, allocations: 4.453 kB / 376.2 MB, free: 19.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.504, allocations: 5.219 kB / 376.2 MB, free: 19.07 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 () * 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 6.57e-05/0.504, allocations: 106.2 kB / 376.3 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.5041, allocations: 8.922 kB / 376.3 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.098e-05/0.5041, allocations: 18.59 kB / 376.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.5042, allocations: 4.859 kB / 376.4 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.5042, allocations: 5.344 kB / 376.4 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5042, allocations: 0.6562 kB / 376.4 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.5045, allocations: 197.1 kB / 376.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5045, allocations: 0 / 376.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.5048, allocations: 26.33 kB / 376.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.5048, allocations: 1.125 kB / 376.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.5048, allocations: 4.328 kB / 376.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.5049, allocations: 1.125 kB / 376.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5049, allocations: 3.953 kB / 376.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.5052, allocations: 193.8 kB / 376.8 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.174e-05/0.5052, allocations: 83.2 kB / 376.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.5053, allocations: 1.375 kB / 376.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.5054, allocations: 8.281 kB / 376.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.5055, allocations: 4.047 kB / 376.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.5055, allocations: 4.984 kB / 376.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.896e-05/0.5056, allocations: 109.2 kB / 377 MB, free: 18.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5056, allocations: 4.062 kB / 377 MB, free: 18.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003532/0.506, allocations: 17.44 kB / 377 MB, free: 18.41 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 () * 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.0004882/0.5065, allocations: 0.7177 MB / 377.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001646/0.5067, allocations: 35.84 kB / 377.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.5067, allocations: 0 / 377.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.498e-05/0.5068, allocations: 25.5 kB / 377.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.5071, allocations: 16.11 kB / 377.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009648/0.5081, allocations: 257.6 kB / 378.1 MB, free: 17.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.5084, allocations: 0.7048 MB / 378.8 MB, free: 16.87 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.28e-05/0.5084, allocations: 33.3 kB / 378.8 MB, free: 16.86 MB / 314.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5085, allocations: 0 / 378.8 MB, free: 16.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.594/3.102, allocations: 1.621 MB / 380.4 MB, free: 16.75 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