Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.139/2.139, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.677e-05, allocations: 2.75 kB / 249.8 MB, free: 5.262 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09664, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4393/0.536, allocations: 71.12 MB / 365.4 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.5363, allocations: 69.45 kB / 365.5 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0103/0.5466, allocations: 2.149 MB / 367.6 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5467, allocations: 0 / 367.6 MB, free: 22.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.5467, allocations: 3.844 kB / 367.6 MB, free: 22.79 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.0004924/0.5472, allocations: 390.3 kB / 368 MB, free: 22.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.5473, allocations: 11.75 kB / 368 MB, free: 22.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.917e-05/0.5473, allocations: 11.69 kB / 368 MB, free: 22.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.5476, allocations: 209.1 kB / 368.2 MB, free: 22.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.5476, allocations: 4.719 kB / 368.2 MB, free: 22.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.5477, allocations: 7.812 kB / 368.2 MB, free: 22.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001232/0.5478, allocations: 27.06 kB / 368.3 MB, free: 22.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001566/0.548, allocations: 63.12 kB / 368.3 MB, free: 22.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.548, allocations: 0 / 368.3 MB, free: 22.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.548, allocations: 3.906 kB / 368.3 MB, free: 22.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.5481, allocations: 0 / 368.3 MB, free: 22.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006747/0.5487, allocations: 391 kB / 368.7 MB, free: 21.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.5489, allocations: 49.84 kB / 368.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.261e-05/0.549, allocations: 23.42 kB / 368.8 MB, free: 21.81 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.549, allocations: 0 / 368.8 MB, free: 21.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.549, allocations: 38.56 kB / 368.8 MB, free: 21.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 1.833e-06/0.5491, allocations: 3.938 kB / 368.8 MB, free: 21.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002385/0.5493, allocations: 69.31 kB / 368.9 MB, free: 21.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.172e-05/0.5493, allocations: 51.41 kB / 368.9 MB, free: 21.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.5495, allocations: 124.8 kB / 369.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.5495, allocations: 25.7 kB / 369.1 MB, free: 21.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.5496, allocations: 107.2 kB / 369.2 MB, free: 21.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.5496, allocations: 18.55 kB / 369.2 MB, free: 21.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.5496, allocations: 4 kB / 369.2 MB, free: 21.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.493e-05/0.5497, allocations: 320.5 kB / 369.5 MB, free: 21.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.687e-05/0.5497, allocations: 11.03 kB / 369.5 MB, free: 21.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.533e-05/0.5498, allocations: 15.28 kB / 369.6 MB, free: 21.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.691e-05/0.5499, allocations: 17.22 kB / 369.6 MB, free: 21.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5499, allocations: 3.938 kB / 369.6 MB, free: 21.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001681/0.5501, allocations: 81.02 kB / 369.7 MB, free: 21.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.5501, allocations: 3.875 kB / 369.7 MB, free: 21.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.5501, allocations: 0 / 369.7 MB, free: 21.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.5501, allocations: 7.875 kB / 369.7 MB, free: 21.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003984/0.5505, allocations: 35.42 kB / 369.7 MB, free: 21.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.5506, allocations: 3.953 kB / 369.7 MB, free: 21.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.758e-05/0.5507, allocations: 10.72 kB / 369.7 MB, free: 21.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.5507, allocations: 3.719 kB / 369.7 MB, free: 21.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 8.517e-05/0.5508, allocations: 104.8 kB / 369.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001684/0.551, allocations: 69.95 kB / 369.9 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/0.551, allocations: 11.78 kB / 369.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.5511, allocations: 14.7 kB / 369.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5511, allocations: 3.953 kB / 369.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5511, allocations: 0 / 369.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.5511, allocations: 0 / 369.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.5514, allocations: 170.3 kB / 370.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5514, allocations: 3.75 kB / 370.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.5517, allocations: 20.97 kB / 370.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.5517, allocations: 0 / 370.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.5517, allocations: 0 / 370.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5517, allocations: 7.75 kB / 370.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.5518, allocations: 0 / 370.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.552, allocations: 186.9 kB / 370.3 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/0.5521, allocations: 84.95 kB / 370.4 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.5522, allocations: 6.578 kB / 370.4 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.5523, allocations: 0 / 370.4 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.656e-05/0.5524, allocations: 10.22 kB / 370.4 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.5524, allocations: 64 / 370.4 MB, free: 20.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.72e-05/0.5525, allocations: 114.3 kB / 370.5 MB, free: 20.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5525, allocations: 224 / 370.5 MB, free: 20.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003968/0.5529, allocations: 19.22 kB / 370.5 MB, free: 20.42 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.0005925/0.5536, allocations: 0.7101 MB / 371.2 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001562/0.5537, allocations: 45.41 kB / 371.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5538, allocations: 0 / 371.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.557e-05/0.5538, allocations: 18.25 kB / 371.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.5542, allocations: 17.73 kB / 371.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009855/0.5552, allocations: 214.1 kB / 371.5 MB, free: 19.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.5556, allocations: 0.7075 MB / 372.2 MB, free: 18.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.928e-05/0.5556, allocations: 11.72 kB / 372.3 MB, free: 18.9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.205e-05/0.5557, allocations: 36.27 kB / 372.3 MB, free: 18.89 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5558, allocations: 0 / 372.3 MB, free: 18.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04457/0.6003, allocations: 1.629 MB / 373.9 MB, free: 18.78 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002637/0.6007, allocations: 131.7 kB / 374 MB, free: 18.58 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.976/3.576, allocations: 8 kB / 374.1 MB, free: 18.57 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat