Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.658e-05, allocations: 0 / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.5209, allocations: 79.6 MB / 422.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.5212, allocations: 80.44 kB / 422.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02079/0.542, allocations: 5.087 MB / 427.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.542, allocations: 0 / 427.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.422e-05/0.542, allocations: 8 kB / 427.4 MB, free: 9.785 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.00113/0.5432, allocations: 0.5493 MB / 427.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.5432, allocations: 8.031 kB / 428 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.94e-05/0.5434, allocations: 72.53 kB / 428 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.757e-05/0.5435, allocations: 39.53 kB / 428.1 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003906/0.5439, allocations: 256.2 kB / 428.3 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.5439, allocations: 22.91 kB / 428.3 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.426e-05/0.544, allocations: 29.62 kB / 428.4 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006666/0.5447, allocations: 258.1 kB / 428.6 MB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.5447, allocations: 0 / 428.6 MB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.214e-05/0.5448, allocations: 10.12 kB / 428.6 MB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.5448, allocations: 8 kB / 428.6 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.5453, allocations: 179.2 kB / 428.8 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.5478, allocations: 1.065 MB / 429.9 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.5481, allocations: 152.2 kB / 430 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003153/0.5485, allocations: 118.2 kB / 430.1 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.5485, allocations: 7.375 kB / 430.1 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.5486, allocations: 30.56 kB / 430.2 MB, free: 7.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 2.074e-06/0.5486, allocations: 0 / 430.2 MB, free: 7.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004383/0.549, allocations: 146.3 kB / 430.3 MB, free: 7.195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.5491, allocations: 55.41 kB / 430.4 MB, free: 7.129 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.5494, allocations: 192.4 kB / 430.6 MB, free: 6.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.5494, allocations: 29.45 kB / 430.6 MB, free: 6.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.5496, allocations: 248.4 kB / 430.8 MB, free: 6.707 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.687e-05/0.5497, allocations: 77.36 kB / 430.9 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.5497, allocations: 3.562 kB / 430.9 MB, free: 6.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.5498, allocations: 322.1 kB / 431.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.55, allocations: 57.19 kB / 431.3 MB, free: 6.285 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.5502, allocations: 133.9 kB / 431.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.5505, allocations: 80.34 kB / 431.5 MB, free: 6.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.5505, allocations: 0 / 431.5 MB, free: 6.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005339/0.551, allocations: 217.4 kB / 431.7 MB, free: 5.918 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.5511, allocations: 12.2 kB / 431.7 MB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.5511, allocations: 8 kB / 431.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.5511, allocations: 4 kB / 431.7 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.5517, allocations: 71.59 kB / 431.8 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.5517, allocations: 11.92 kB / 431.8 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.552, allocations: 34.5 kB / 431.8 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.552, allocations: 10.5 kB / 431.9 MB, free: 5.777 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.0001023/0.5521, allocations: 122.1 kB / 432 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.186e-05/0.5522, allocations: 27.7 kB / 432 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004258/0.5527, allocations: 177.4 kB / 432.2 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.5527, allocations: 0 / 432.2 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5527, allocations: 0 / 432.2 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.5527, allocations: 7.984 kB / 432.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009703/0.5537, allocations: 0.5716 MB / 432.8 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.5537, allocations: 4.062 kB / 432.8 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005593/0.5543, allocations: 59.53 kB / 432.8 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.5543, allocations: 4 kB / 432.8 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.5543, allocations: 6.703 kB / 432.8 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.644e-06/0.5543, allocations: 4 kB / 432.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.5544, allocations: 0 / 432.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.555, allocations: 361.8 kB / 433.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.092e-05/0.555, allocations: 104.4 kB / 433.3 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.648e-05/0.5551, allocations: 3.75 kB / 433.3 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/0.5554, allocations: 19.98 kB / 433.3 MB, free: 4.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.192e-05/0.5555, allocations: 15.23 kB / 433.3 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.5555, allocations: 4 kB / 433.3 MB, free: 4.395 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001796/0.5557, allocations: 156.1 kB / 433.5 MB, free: 4.266 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5557, allocations: 0 / 433.5 MB, free: 4.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005065/0.5562, allocations: 78.72 kB / 433.6 MB, free: 4.195 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.0009742/0.5572, allocations: 1.047 MB / 434.6 MB, free: 3.176 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004022/0.5576, allocations: 149.4 kB / 434.8 MB, free: 3.066 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.5577, allocations: 4.5 kB / 434.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.5578, allocations: 68.44 kB / 434.8 MB, free: 3.012 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.5582, allocations: 26.97 kB / 434.8 MB, free: 2.992 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.5602, allocations: 0.7954 MB / 435.6 MB, free: 2.199 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.5606, allocations: 0.7755 MB / 436.4 MB, free: 1.398 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.5608, allocations: 90.88 kB / 436.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5608, allocations: 4 kB / 436.5 MB, free: 1.367 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.259/2.82, allocations: 4.119 MB / 440.6 MB, free: 13.32 MB / 362.7 MB