Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.845/1.845, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.321e-05/2.324e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2669, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.4, allocations: 69.4 MB / 327.7 MB, free: 8.434 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.4004, allocations: 79.95 kB / 327.8 MB, free: 8.355 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04392/0.4443, allocations: 12.11 MB / 339.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.4443, allocations: 7.922 kB / 339.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.009e-05/0.4444, allocations: 8 kB / 339.9 MB, free: 12.06 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002132/0.4465, allocations: 0.6671 MB / 340.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.4466, allocations: 8.031 kB / 340.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/0.4469, allocations: 51.55 kB / 340.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.4473, allocations: 258.5 kB / 340.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.4473, allocations: 12 kB / 340.9 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-05/0.4474, allocations: 28 kB / 340.9 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006694/0.4481, allocations: 226.6 kB / 341.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.4488, allocations: 272 kB / 341.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.4489, allocations: 4 kB / 341.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.967e-05/0.4489, allocations: 7.938 kB / 341.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.449, allocations: 8 kB / 341.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002664/0.4516, allocations: 1.261 MB / 342.7 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007751/0.4524, allocations: 166.7 kB / 342.9 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.4527, allocations: 68.84 kB / 342.9 MB, free: 8.859 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.4527, allocations: 7.938 kB / 343 MB, free: 8.852 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.4528, allocations: 30.56 kB / 343 MB, free: 8.812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 3.016e-06/0.4528, allocations: 0 / 343 MB, free: 8.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009291/0.4537, allocations: 195.5 kB / 343.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.4538, allocations: 55.41 kB / 343.2 MB, free: 8.547 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.454, allocations: 134.2 kB / 343.4 MB, free: 8.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.4541, allocations: 25.7 kB / 343.4 MB, free: 8.367 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.4543, allocations: 278.2 kB / 343.7 MB, free: 8.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.008e-05/0.4544, allocations: 59.11 kB / 343.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.4545, allocations: 0 / 343.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4547, allocations: 326.8 kB / 344 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.4549, allocations: 48 kB / 344.1 MB, free: 7.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002621/0.4551, allocations: 107.7 kB / 344.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.4554, allocations: 61.36 kB / 344.2 MB, free: 7.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.4554, allocations: 4 kB / 344.2 MB, free: 7.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001037/0.4565, allocations: 253.3 kB / 344.5 MB, free: 7.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.4565, allocations: 11.75 kB / 344.5 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.4565, allocations: 0 / 344.5 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005944/0.4571, allocations: 88.69 kB / 344.6 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.4575, allocations: 31.98 kB / 344.6 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.4609, allocations: 1.775 MB / 346.4 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.4613, allocations: 19.78 kB / 346.4 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/0.4613, allocations: 8 kB / 346.4 MB, free: 5.168 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000148/0.4615, allocations: 105 kB / 346.5 MB, free: 5.059 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008571/0.4623, allocations: 207.8 kB / 346.7 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.341e-05/0.4624, allocations: 11.81 kB / 346.7 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008904/0.4633, allocations: 207.1 kB / 346.9 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.4634, allocations: 7.953 kB / 347 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.4634, allocations: 4 kB / 347 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4634, allocations: 0 / 347 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006475/0.4641, allocations: 274 kB / 347.2 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4641, allocations: 0 / 347.2 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.4644, allocations: 23.92 kB / 347.2 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006022/0.465, allocations: 80.81 kB / 347.3 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.4651, allocations: 0 / 347.3 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003774/0.4689, allocations: 1.771 MB / 349.1 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.4689, allocations: 0 / 349.1 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.4701, allocations: 369.5 kB / 349.5 MB, free: 1.938 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-05/0.4702, allocations: 88.95 kB / 349.5 MB, free: 1.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.4703, allocations: 0 / 349.5 MB, free: 1.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003577/0.4706, allocations: 15.94 kB / 349.6 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.449e-05/0.4708, allocations: 20.05 kB / 349.6 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.4708, allocations: 4 kB / 349.6 MB, free: 1.793 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001612/0.471, allocations: 112.5 kB / 349.7 MB, free: 1.684 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.471, allocations: 0 / 349.7 MB, free: 1.684 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001085/0.4721, allocations: 99.53 kB / 349.8 MB, free: 1.586 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001594/0.4737, allocations: 0.9088 MB / 350.7 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009278/0.4746, allocations: 287.7 kB / 351 MB, free: 364 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4747, allocations: 4 kB / 351 MB, free: 360 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005924/0.4753, allocations: 214 kB / 351.2 MB, free: 136 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.4757, allocations: 15.95 kB / 351.2 MB, free: 120 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.4776, allocations: 449.6 kB / 351.6 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005971/0.4782, allocations: 0.775 MB / 352.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.4785, allocations: 91.41 kB / 352.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4785, allocations: 4 kB / 352.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.728/3.206, allocations: 5.035 MB / 357.6 MB, free: 9.703 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat