Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.62e-05/3.633e-05, allocations: 0 / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1403, allocations: 50.4 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4518/0.5922, allocations: 79.52 MB / 422.2 MB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.5925, allocations: 71.2 kB / 422.2 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02191/0.6145, allocations: 5.1 MB / 427.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6145, allocations: 0 / 427.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.521e-05/0.6145, allocations: 4 kB / 427.3 MB, free: 10.28 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.001201/0.6158, allocations: 0.5446 MB / 427.9 MB, free: 9.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.6158, allocations: 8.031 kB / 427.9 MB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.6159, allocations: 72.34 kB / 428 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.616, allocations: 39.53 kB / 428 MB, free: 9.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.6165, allocations: 252.5 kB / 428.2 MB, free: 9.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.233e-05/0.6165, allocations: 27.41 kB / 428.3 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.833e-05/0.6166, allocations: 30.5 kB / 428.3 MB, free: 9.305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.6173, allocations: 258.3 kB / 428.6 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.6173, allocations: 0 / 428.6 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.6174, allocations: 17.5 kB / 428.6 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.6174, allocations: 8 kB / 428.6 MB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000534/0.6179, allocations: 180.3 kB / 428.8 MB, free: 9 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002623/0.6206, allocations: 1.066 MB / 429.8 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.621, allocations: 145.3 kB / 430 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.6213, allocations: 116.8 kB / 430.1 MB, free: 7.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.6214, allocations: 4 kB / 430.1 MB, free: 7.859 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.6214, allocations: 34.06 kB / 430.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 3.337e-06/0.6214, allocations: 0 / 430.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.000486/0.6219, allocations: 150.6 kB / 430.3 MB, free: 7.695 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.622, allocations: 51.41 kB / 430.3 MB, free: 7.633 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.6223, allocations: 194.5 kB / 430.5 MB, free: 7.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.6223, allocations: 29.45 kB / 430.5 MB, free: 7.434 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.6225, allocations: 194.5 kB / 430.7 MB, free: 7.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.154e-05/0.6226, allocations: 76.73 kB / 430.8 MB, free: 7.199 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.522e-05/0.6226, allocations: 3.875 kB / 430.8 MB, free: 7.199 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6228, allocations: 329 kB / 431.1 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.6229, allocations: 56.73 kB / 431.2 MB, free: 6.844 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.6232, allocations: 135.1 kB / 431.3 MB, free: 6.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.6234, allocations: 73.16 kB / 431.4 MB, free: 6.652 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.6235, allocations: 8 kB / 431.4 MB, free: 6.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000584/0.6241, allocations: 232.5 kB / 431.6 MB, free: 6.457 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.6241, allocations: 9.359 kB / 431.6 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.6241, allocations: 4 kB / 431.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.6241, allocations: 4 kB / 431.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000583/0.6247, allocations: 79.64 kB / 431.7 MB, free: 6.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.6248, allocations: 4 kB / 431.7 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.6251, allocations: 35.3 kB / 431.7 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.6251, allocations: 15.88 kB / 431.8 MB, free: 6.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0001184/0.6253, allocations: 115.5 kB / 431.9 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.177e-05/0.6253, allocations: 15.81 kB / 431.9 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.6258, allocations: 187.7 kB / 432.1 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.6258, allocations: 0 / 432.1 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.6258, allocations: 4 kB / 432.1 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.6258, allocations: 0 / 432.1 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.6269, allocations: 0.5714 MB / 432.6 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.6269, allocations: 0 / 432.6 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005851/0.6275, allocations: 55.91 kB / 432.7 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/0.6276, allocations: 8.109 kB / 432.7 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.6276, allocations: 15.67 kB / 432.7 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.878e-06/0.6276, allocations: 8 kB / 432.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.6276, allocations: 0 / 432.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006322/0.6283, allocations: 363.6 kB / 433.1 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.293e-05/0.6284, allocations: 96.83 kB / 433.2 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.762e-05/0.6284, allocations: 3.375 kB / 433.2 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.6288, allocations: 18.73 kB / 433.2 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.6289, allocations: 22.84 kB / 433.2 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.6289, allocations: 4 kB / 433.2 MB, free: 4.938 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001958/0.6291, allocations: 155.3 kB / 433.4 MB, free: 4.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6291, allocations: 0 / 433.4 MB, free: 4.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005378/0.6296, allocations: 82.88 kB / 433.5 MB, free: 4.734 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.001046/0.6307, allocations: 1.048 MB / 434.5 MB, free: 3.711 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000424/0.6311, allocations: 147.7 kB / 434.7 MB, free: 3.602 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.6312, allocations: 4 kB / 434.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.6313, allocations: 58.5 kB / 434.7 MB, free: 3.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.6317, allocations: 34.75 kB / 434.7 MB, free: 3.535 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.6338, allocations: 0.7547 MB / 435.5 MB, free: 2.785 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.6344, allocations: 0.7755 MB / 436.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.6346, allocations: 22.08 kB / 436.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.6347, allocations: 93.84 kB / 436.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6348, allocations: 0 / 436.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.6605, allocations: 4.135 MB / 440.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003205/0.6609, allocations: 157.6 kB / 440.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.434/3.095, allocations: 4.062 kB / 440.7 MB, free: 13.66 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat