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.776/1.776, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.792e-05/4.806e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.351, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.4766, allocations: 70.06 MB / 333.9 MB, free: 3.695 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.4769, allocations: 79.95 kB / 334 MB, free: 3.617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0453/0.5222, allocations: 12.26 MB / 346.2 MB, free: 7.191 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5223, allocations: 0 / 346.2 MB, free: 7.191 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.5223, allocations: 8 kB / 346.2 MB, free: 7.184 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.002147/0.5245, allocations: 0.6662 MB / 346.9 MB, free: 6.473 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.5245, allocations: 12.03 kB / 346.9 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.5247, allocations: 78.52 kB / 347 MB, free: 6.375 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002721/0.5249, allocations: 59.53 kB / 347.1 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003686/0.5253, allocations: 250.6 kB / 347.3 MB, free: 6.031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.5254, allocations: 33 kB / 347.3 MB, free: 6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.26e-05/0.5255, allocations: 39.98 kB / 347.4 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008525/0.5263, allocations: 330.5 kB / 347.7 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.5264, allocations: 8 kB / 347.7 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.388e-05/0.5264, allocations: 16 kB / 347.7 MB, free: 5.609 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.5265, allocations: 8 kB / 347.7 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007039/0.5272, allocations: 244 kB / 348 MB, free: 5.363 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002768/0.53, allocations: 1.339 MB / 349.3 MB, free: 3.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007118/0.5307, allocations: 182.7 kB / 349.5 MB, free: 3.742 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.5309, allocations: 72.86 kB / 349.6 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.531, allocations: 0 / 349.6 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.531, allocations: 34.56 kB / 349.6 MB, free: 3.625 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.531, allocations: 0 / 349.6 MB, free: 3.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007441/0.5318, allocations: 220.8 kB / 349.8 MB, free: 3.402 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.5318, allocations: 55.36 kB / 349.9 MB, free: 3.336 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.532, allocations: 154.5 kB / 350 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.5321, allocations: 25.7 kB / 350 MB, free: 3.141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.5323, allocations: 274 kB / 350.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.47e-05/0.5324, allocations: 63.09 kB / 350.4 MB, free: 2.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.435e-05/0.5324, allocations: 4 kB / 350.4 MB, free: 2.805 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5325, allocations: 322.8 kB / 350.7 MB, free: 2.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.5327, allocations: 48 kB / 350.7 MB, free: 2.434 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.5329, allocations: 106.9 kB / 350.8 MB, free: 2.305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.5331, allocations: 72.08 kB / 350.9 MB, free: 2.234 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.5331, allocations: 0 / 350.9 MB, free: 2.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008078/0.534, allocations: 274.7 kB / 351.2 MB, free: 1.957 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.534, allocations: 8 kB / 351.2 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.534, allocations: 0 / 351.2 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005045/0.5345, allocations: 84.81 kB / 351.3 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002931/0.5348, allocations: 43.97 kB / 351.3 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.5376, allocations: 1.842 MB / 353.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.5379, allocations: 35.67 kB / 353.2 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.538, allocations: 12.06 kB / 353.2 MB, free: 15.8 MB / 314.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.0001186/0.5381, allocations: 113.8 kB / 353.3 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.685e-05/0.5382, allocations: 15.81 kB / 353.3 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007227/0.5389, allocations: 231.8 kB / 353.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.5389, allocations: 0 / 353.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5389, allocations: 4 kB / 353.6 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.539, allocations: 11.92 kB / 353.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005511/0.5395, allocations: 325.5 kB / 353.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.5395, allocations: 0 / 353.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.5398, allocations: 15.98 kB / 353.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000442/0.5402, allocations: 84.8 kB / 354 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.5402, allocations: 12 kB / 354 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002686/0.5429, allocations: 1.839 MB / 355.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.543, allocations: 3.984 kB / 355.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000891/0.5439, allocations: 375.2 kB / 356.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.792e-05/0.544, allocations: 100.8 kB / 356.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.544, allocations: 8 kB / 356.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.5443, allocations: 15.98 kB / 356.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.434e-05/0.5444, allocations: 11.98 kB / 356.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.5444, allocations: 8 kB / 356.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001478/0.5446, allocations: 128.9 kB / 356.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5446, allocations: 4 kB / 356.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006587/0.5453, allocations: 95.69 kB / 356.6 MB, free: 12.19 MB / 314.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.001322/0.5466, allocations: 0.9317 MB / 357.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000888/0.5475, allocations: 314.1 kB / 357.8 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/0.5475, allocations: 0 / 357.8 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005064/0.548, allocations: 226.8 kB / 358 MB, free: 10.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.5484, allocations: 16 kB / 358 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.5498, allocations: 472 kB / 358.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.5503, allocations: 0.7714 MB / 359.3 MB, free: 9.355 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.5505, allocations: 95.39 kB / 359.4 MB, free: 9.262 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5505, allocations: 4 kB / 359.4 MB, free: 9.258 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.822/3.373, allocations: 5.129 MB / 364.5 MB, free: 4.125 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