Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.33e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 50.4 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4247/0.5289, allocations: 79.63 MB / 422.2 MB, free: 14.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.5293, allocations: 78.39 kB / 422.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02112/0.5504, allocations: 5.045 MB / 427.4 MB, free: 9.832 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5504, allocations: 0 / 427.4 MB, free: 9.832 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.779e-05/0.5505, allocations: 8 kB / 427.4 MB, free: 9.824 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.001142/0.5516, allocations: 0.5443 MB / 427.9 MB, free: 9.258 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.5517, allocations: 12.03 kB / 427.9 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.316e-05/0.5518, allocations: 68.47 kB / 428 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.537e-05/0.5519, allocations: 35.53 kB / 428 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.5523, allocations: 257.4 kB / 428.3 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.5524, allocations: 26.03 kB / 428.3 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.503e-05/0.5524, allocations: 29.81 kB / 428.3 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006352/0.5531, allocations: 253.6 kB / 428.6 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.5531, allocations: 0 / 428.6 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/0.5532, allocations: 17.48 kB / 428.6 MB, free: 8.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.5532, allocations: 8 kB / 428.6 MB, free: 8.652 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.5537, allocations: 168.4 kB / 428.8 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/0.5561, allocations: 1.01 MB / 429.8 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.5565, allocations: 139.6 kB / 429.9 MB, free: 7.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.5567, allocations: 70.31 kB / 430 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.5567, allocations: 3.938 kB / 430 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.5567, allocations: 37.94 kB / 430 MB, free: 7.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.795e-06/0.5567, allocations: 0 / 430 MB, free: 7.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004252/0.5572, allocations: 136.6 kB / 430.2 MB, free: 7.312 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.5572, allocations: 51.41 kB / 430.2 MB, free: 7.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.5575, allocations: 186.8 kB / 430.4 MB, free: 7.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.5575, allocations: 29.7 kB / 430.4 MB, free: 7.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.5577, allocations: 245.3 kB / 430.7 MB, free: 6.836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.168e-05/0.5578, allocations: 69.64 kB / 430.7 MB, free: 6.777 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.392e-05/0.5578, allocations: 3.125 kB / 430.7 MB, free: 6.777 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.5579, allocations: 326.3 kB / 431.1 MB, free: 6.453 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.5581, allocations: 55.31 kB / 431.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.5583, allocations: 107.1 kB / 431.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.5585, allocations: 58.92 kB / 431.3 MB, free: 6.277 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5586, allocations: 8 kB / 431.3 MB, free: 6.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000478/0.559, allocations: 194.2 kB / 431.5 MB, free: 6.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.5591, allocations: 7.953 kB / 431.5 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.5591, allocations: 4 kB / 431.5 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.5591, allocations: 4 kB / 431.5 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005205/0.5597, allocations: 63.28 kB / 431.5 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.5597, allocations: 4 kB / 431.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.56, allocations: 39.11 kB / 431.6 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.56, allocations: 7.5 kB / 431.6 MB, free: 5.996 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.0001025/0.5601, allocations: 112.4 kB / 431.7 MB, free: 5.883 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.203e-05/0.5602, allocations: 23.75 kB / 431.7 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004094/0.5606, allocations: 170 kB / 431.9 MB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.5606, allocations: 4 kB / 431.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.5607, allocations: 3.953 kB / 431.9 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5607, allocations: 4 kB / 431.9 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004888/0.5612, allocations: 316.7 kB / 432.2 MB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.5612, allocations: 3.984 kB / 432.2 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000546/0.5617, allocations: 51.41 kB / 432.3 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.5618, allocations: 0 / 432.3 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.5618, allocations: 7.312 kB / 432.3 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.5618, allocations: 0 / 432.3 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.5618, allocations: 3.953 kB / 432.3 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005525/0.5624, allocations: 313.3 kB / 432.6 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.378e-05/0.5625, allocations: 96.83 kB / 432.7 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.517e-05/0.5626, allocations: 3.25 kB / 432.7 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.5629, allocations: 19.11 kB / 432.7 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.501e-05/0.5629, allocations: 22.8 kB / 432.7 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.563, allocations: 8 kB / 432.7 MB, free: 4.922 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001827/0.5632, allocations: 152 kB / 432.9 MB, free: 4.797 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5632, allocations: 0 / 432.9 MB, free: 4.797 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004838/0.5637, allocations: 78.62 kB / 433 MB, free: 4.727 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.0008739/0.5646, allocations: 0.8589 MB / 433.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003789/0.565, allocations: 130.6 kB / 433.9 MB, free: 3.805 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.565, allocations: 0 / 433.9 MB, free: 3.805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.5651, allocations: 65.67 kB / 434 MB, free: 3.754 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.5655, allocations: 26.22 kB / 434 MB, free: 3.738 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.5675, allocations: 0.7667 MB / 434.8 MB, free: 2.969 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.568, allocations: 0.7755 MB / 435.6 MB, free: 2.164 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.5682, allocations: 92.22 kB / 435.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of SimCode: time 1.183e-06/0.5682, allocations: 0 / 435.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.309/2.877, allocations: 4.073 MB / 439.7 MB, free: 14.13 MB / 362.7 MB