Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 225.8 MB / 238.8 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.005e-05/3.014e-05, allocations: 2.812 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 50.41 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4536/0.5644, allocations: 79.57 MB / 422.2 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.5647, allocations: 68.84 kB / 422.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02227/0.587, allocations: 5.044 MB / 427.3 MB, free: 9.918 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5871, allocations: 0 / 427.3 MB, free: 9.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.832e-05/0.5871, allocations: 8 kB / 427.3 MB, free: 9.91 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001238/0.5884, allocations: 0.5461 MB / 427.9 MB, free: 9.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.5884, allocations: 8.031 kB / 427.9 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.5886, allocations: 70.16 kB / 428 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.5887, allocations: 43.53 kB / 428 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.5891, allocations: 255.4 kB / 428.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.5892, allocations: 27.97 kB / 428.3 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.242e-05/0.5893, allocations: 31.19 kB / 428.3 MB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006644/0.59, allocations: 246.1 kB / 428.5 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.59, allocations: 0 / 428.5 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.553e-05/0.5901, allocations: 11.5 kB / 428.6 MB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.5901, allocations: 8 kB / 428.6 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004982/0.5906, allocations: 175 kB / 428.7 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.5931, allocations: 1.011 MB / 429.7 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.5936, allocations: 139.7 kB / 429.9 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.5938, allocations: 70.94 kB / 429.9 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.5938, allocations: 4 kB / 430 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.5939, allocations: 41.94 kB / 430 MB, free: 7.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 3.076e-06/0.5939, allocations: 0 / 430 MB, free: 7.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004436/0.5943, allocations: 135.3 kB / 430.1 MB, free: 7.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.5944, allocations: 59.41 kB / 430.2 MB, free: 7.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.5947, allocations: 186 kB / 430.4 MB, free: 7.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.5947, allocations: 25.7 kB / 430.4 MB, free: 7.141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.5949, allocations: 187.4 kB / 430.6 MB, free: 6.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.343e-05/0.595, allocations: 70.02 kB / 430.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-05/0.5951, allocations: 7.188 kB / 430.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.5953, allocations: 325.8 kB / 431 MB, free: 6.598 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.5955, allocations: 55.23 kB / 431 MB, free: 6.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.5957, allocations: 103.8 kB / 431.1 MB, free: 6.461 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.5959, allocations: 64.97 kB / 431.2 MB, free: 6.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5959, allocations: 0 / 431.2 MB, free: 6.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000555/0.5965, allocations: 211.6 kB / 431.4 MB, free: 6.246 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.5965, allocations: 7.953 kB / 431.4 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.5966, allocations: 4 kB / 431.4 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.5966, allocations: 4 kB / 431.4 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.5971, allocations: 67.58 kB / 431.5 MB, free: 6.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.5972, allocations: 4 kB / 431.5 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.5975, allocations: 35.08 kB / 431.5 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.5975, allocations: 4 kB / 431.5 MB, free: 6.129 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.000118/0.5977, allocations: 115.7 kB / 431.6 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.959e-05/0.5977, allocations: 23.72 kB / 431.7 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004493/0.5982, allocations: 162.1 kB / 431.8 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.5982, allocations: 4 kB / 431.8 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.5982, allocations: 3.953 kB / 431.8 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.5982, allocations: 3.984 kB / 431.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005429/0.5988, allocations: 318.2 kB / 432.1 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.5988, allocations: 8 kB / 432.1 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005701/0.5994, allocations: 51.91 kB / 432.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/0.5994, allocations: 7.984 kB / 432.2 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.5995, allocations: 3.438 kB / 432.2 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.5995, allocations: 0 / 432.2 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.5995, allocations: 3.953 kB / 432.2 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005922/0.6001, allocations: 306.7 kB / 432.5 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.83e-05/0.6002, allocations: 100.5 kB / 432.6 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.633e-05/0.6003, allocations: 11.86 kB / 432.6 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.6006, allocations: 19.61 kB / 432.6 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.776e-05/0.6007, allocations: 19.81 kB / 432.7 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.6007, allocations: 4 kB / 432.7 MB, free: 5.055 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001984/0.6009, allocations: 149.6 kB / 432.8 MB, free: 4.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6009, allocations: 4 kB / 432.8 MB, free: 4.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005212/0.6014, allocations: 77.69 kB / 432.9 MB, free: 4.855 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0009858/0.6024, allocations: 0.8527 MB / 433.7 MB, free: 4.031 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000419/0.6029, allocations: 129.3 kB / 433.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.6029, allocations: 4.25 kB / 433.9 MB, free: 3.934 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.6031, allocations: 62.8 kB / 433.9 MB, free: 3.891 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.6034, allocations: 26.64 kB / 434 MB, free: 3.875 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002185/0.6056, allocations: 0.7417 MB / 434.7 MB, free: 3.137 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.6061, allocations: 0.7794 MB / 435.5 MB, free: 2.328 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001635/0.6063, allocations: 22.08 kB / 435.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.6065, allocations: 96.47 kB / 435.6 MB, free: 2.273 MB / 346.7 MB Notification: Performance of SimCode: time 1.153e-06/0.6065, allocations: 0 / 435.6 MB, free: 2.273 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.6325, allocations: 4.011 MB / 439.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003495/0.6329, allocations: 162.1 kB / 439.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.419/3.052, allocations: 0 / 439.8 MB, free: 14.12 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat