Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.919/1.919, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.586e-05/4.6e-05, allocations: 8 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.125, allocations: 50.41 MB / 342.6 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4915/0.6166, allocations: 83.14 MB / 425.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.6169, allocations: 69.41 kB / 425.9 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06958/0.6865, allocations: 16.21 MB / 442.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.586e-06/0.6866, allocations: 0 / 442.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001102/0.6867, allocations: 31.98 kB / 442.1 MB, free: 12.8 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002793/0.6895, allocations: 1.029 MB / 443.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.6896, allocations: 12.03 kB / 443.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004236/0.69, allocations: 156.4 kB / 443.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003161/0.6903, allocations: 126.6 kB / 443.4 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001487/0.6918, allocations: 0.5521 MB / 444 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.95e-05/0.6919, allocations: 75.38 kB / 444 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.6921, allocations: 104.3 kB / 444.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.6946, allocations: 0.97 MB / 445.1 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.429e-05/0.6947, allocations: 7.938 kB / 445.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.6948, allocations: 43.5 kB / 445.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-05/0.6948, allocations: 32 kB / 445.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.6965, allocations: 0.4886 MB / 445.7 MB, free: 9.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00765/0.7041, allocations: 5.539 MB / 451.2 MB, free: 4.375 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000736/0.7049, allocations: 212.7 kB / 451.4 MB, free: 4.207 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003849/0.7053, allocations: 147.8 kB / 451.6 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001649/0.7055, allocations: 92.53 kB / 451.7 MB, free: 3.992 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.7056, allocations: 38.52 kB / 451.7 MB, free: 3.945 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 4.268e-06/0.7056, allocations: 0 / 451.7 MB, free: 3.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.004645/0.7102, allocations: 1.512 MB / 453.2 MB, free: 2.516 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.7104, allocations: 89.09 kB / 453.3 MB, free: 2.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009567/0.7113, allocations: 0.536 MB / 453.8 MB, free: 1.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.7114, allocations: 33.64 kB / 453.9 MB, free: 1.945 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005077/0.7119, allocations: 0.5964 MB / 454.5 MB, free: 1.488 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.7121, allocations: 149.2 kB / 454.6 MB, free: 1.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.024e-05/0.7122, allocations: 14.75 kB / 454.6 MB, free: 1.359 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.7124, allocations: 390.5 kB / 455 MB, free: 1.004 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000357/0.7127, allocations: 128.4 kB / 455.1 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006213/0.7134, allocations: 469.8 kB / 455.6 MB, free: 376 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/0.7139, allocations: 212.9 kB / 455.8 MB, free: 224 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.7139, allocations: 0 / 455.8 MB, free: 224 kB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001574/0.7155, allocations: 0.6332 MB / 456.4 MB, free: 15.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.7156, allocations: 15.98 kB / 456.4 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.7156, allocations: 12 kB / 456.5 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.305e-05/0.7157, allocations: 16 kB / 456.5 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.717, allocations: 199.9 kB / 456.7 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.447e-05/0.717, allocations: 27.92 kB / 456.7 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006917/0.7177, allocations: 39.98 kB / 456.7 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.904e-05/0.7178, allocations: 40 kB / 456.8 MB, free: 15.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0001916/0.718, allocations: 156.6 kB / 456.9 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.7182, allocations: 75.06 kB / 457 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002151/0.7184, allocations: 78.31 kB / 457.1 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.7184, allocations: 11.94 kB / 457.1 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.7185, allocations: 4 kB / 457.1 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.7185, allocations: 0 / 457.1 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003072/0.7216, allocations: 1.293 MB / 458.4 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.7216, allocations: 4.156 kB / 458.4 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009618/0.7226, allocations: 111.9 kB / 458.5 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/0.7226, allocations: 4 kB / 458.5 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.014e-05/0.7227, allocations: 8 kB / 458.5 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.7227, allocations: 4 kB / 458.5 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.7227, allocations: 3.984 kB / 458.5 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.724, allocations: 0.7149 MB / 459.2 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.7243, allocations: 136.2 kB / 459.4 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.729e-05/0.7244, allocations: 12 kB / 459.4 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000538/0.7249, allocations: 31.98 kB / 459.4 MB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.725, allocations: 27.95 kB / 459.4 MB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.718e-05/0.7251, allocations: 12 kB / 459.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008324/0.7259, allocations: 411.2 kB / 459.9 MB, free: 12.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.726, allocations: 0 / 459.9 MB, free: 12.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001048/0.727, allocations: 143.9 kB / 460 MB, free: 11.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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.001846/0.7289, allocations: 1.681 MB / 461.7 MB, free: 10.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.73, allocations: 370.4 kB / 462 MB, free: 9.832 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.73, allocations: 0 / 462 MB, free: 9.832 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003576/0.7304, allocations: 131.8 kB / 462.2 MB, free: 9.703 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006694/0.7311, allocations: 71.25 kB / 462.2 MB, free: 9.637 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004524/0.7356, allocations: 1.365 MB / 463.6 MB, free: 8.215 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008162/0.7365, allocations: 1.031 MB / 464.6 MB, free: 7.156 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005667/0.7371, allocations: 94 kB / 464.7 MB, free: 7.062 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007423/0.7378, allocations: 387.3 kB / 465.1 MB, free: 6.684 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.7378, allocations: 0 / 465.1 MB, free: 6.684 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0503/0.7882, allocations: 11.36 MB / 476.5 MB, free: 11.42 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003094/0.7885, allocations: 163 kB / 476.6 MB, free: 11.2 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3/3.788, allocations: 0 / 476.6 MB, free: 11.2 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat