Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.78/2.78, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.255e-05/3.272e-05, allocations: 7.578 kB / 249.8 MB, free: 5.273 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1139, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.567/0.681, allocations: 76.27 MB / 370.5 MB, free: 6.941 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.6813, allocations: 84.19 kB / 370.6 MB, free: 6.938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07085/0.7522, allocations: 15.81 MB / 386.4 MB, free: 18.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.7523, allocations: 0 / 386.4 MB, free: 18.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.254e-05/0.7523, allocations: 11.69 kB / 386.4 MB, free: 18.31 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002864/0.7552, allocations: 0.7576 MB / 387.2 MB, free: 17.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.7553, allocations: 11.62 kB / 387.2 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003072/0.7556, allocations: 86.27 kB / 387.3 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005684/0.7613, allocations: 428.5 kB / 387.7 MB, free: 17.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.762, allocations: 331.5 kB / 388 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.7621, allocations: 24.75 kB / 388.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.7622, allocations: 39 kB / 388.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001733/0.764, allocations: 0.5646 MB / 388.7 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.7653, allocations: 423.5 kB / 389.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.74e-05/0.7654, allocations: 3.5 kB / 389.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-05/0.7655, allocations: 3.969 kB / 389.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.7655, allocations: 11.62 kB / 389.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005434/0.771, allocations: 1.959 MB / 391 MB, free: 16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004428/0.7754, allocations: 2.968 MB / 394 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005225/0.776, allocations: 187.9 kB / 394.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001792/0.7762, allocations: 89.34 kB / 394.3 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.7763, allocations: 37.5 kB / 394.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.328e-06/0.7763, allocations: 0 / 394.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002062/0.7784, allocations: 483.6 kB / 394.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.7784, allocations: 55.72 kB / 394.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.7787, allocations: 165.8 kB / 395 MB, free: 12.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.075e-05/0.7788, allocations: 29.61 kB / 395 MB, free: 12.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.7789, allocations: 243.2 kB / 395.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.7792, allocations: 157.8 kB / 395.4 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.04e-05/0.7792, allocations: 0 / 395.4 MB, free: 12.19 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.7794, allocations: 336.8 kB / 395.8 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.7798, allocations: 138.6 kB / 395.9 MB, free: 11.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.7803, allocations: 234.7 kB / 396.1 MB, free: 11.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.7816, allocations: 262.9 kB / 396.4 MB, free: 11.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.7816, allocations: 0 / 396.4 MB, free: 11.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002426/0.7841, allocations: 0.583 MB / 397 MB, free: 11.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.7841, allocations: 3.719 kB / 397 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.7841, allocations: 4.125 kB / 397 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006018/0.7848, allocations: 96.44 kB / 397.1 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.7858, allocations: 114.9 kB / 397.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003161/0.789, allocations: 1.774 MB / 399 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006545/0.7897, allocations: 42.95 kB / 399 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.258e-05/0.7897, allocations: 23.06 kB / 399 MB, free: 10.03 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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.0002007/0.79, allocations: 120.5 kB / 399.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.7901, allocations: 34.77 kB / 399.2 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002316/0.7924, allocations: 0.5452 MB / 399.7 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-05/0.7925, allocations: 10.61 kB / 399.7 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.7925, allocations: 0 / 399.7 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.7925, allocations: 7.328 kB / 399.7 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003221/0.7957, allocations: 1.068 MB / 400.8 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.7958, allocations: 0 / 400.8 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008131/0.7966, allocations: 77.56 kB / 400.9 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005351/0.7972, allocations: 87.72 kB / 401 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.984e-05/0.7972, allocations: 4 kB / 401 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.8003, allocations: 1.772 MB / 402.7 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.8004, allocations: 0 / 402.7 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/0.803, allocations: 0.7866 MB / 403.5 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.8032, allocations: 112.4 kB / 403.6 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.78e-05/0.8033, allocations: 0 / 403.6 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005088/0.8038, allocations: 11.7 kB / 403.6 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.804, allocations: 42.2 kB / 403.7 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.719e-05/0.8041, allocations: 15.22 kB / 403.7 MB, free: 7.398 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001633/0.8042, allocations: 127.2 kB / 403.8 MB, free: 7.316 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.156e-06/0.8043, allocations: 0 / 403.8 MB, free: 7.316 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000994/0.8053, allocations: 151.2 kB / 404 MB, free: 7.277 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 43 * 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.003183/0.8085, allocations: 1.353 MB / 405.3 MB, free: 6.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.81, allocations: 0.5295 MB / 405.9 MB, free: 6.336 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.8101, allocations: 0 / 405.9 MB, free: 6.336 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008719/0.811, allocations: 347.8 kB / 406.2 MB, free: 6.195 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/0.8114, allocations: 14.98 kB / 406.2 MB, free: 6.191 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005287/0.8167, allocations: 1.064 MB / 407.3 MB, free: 5.734 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.8173, allocations: 0.8238 MB / 408.1 MB, free: 4.973 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005146/0.8179, allocations: 53.64 kB / 408.2 MB, free: 4.949 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.8182, allocations: 140.3 kB / 408.3 MB, free: 4.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.403e-06/0.8182, allocations: 0 / 408.3 MB, free: 4.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06746/0.8857, allocations: 6.374 MB / 414.7 MB, free: 1.898 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003918/0.8862, allocations: 179.2 kB / 414.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.832/4.719, allocations: 0 / 414.8 MB, free: 1.703 MB / 314.7 MB "" Variables in the reference:time,inductor.pin_p.reference.gamma Variables in the result:I_abs,I_arg,V.k,V.y,_D_cse1,_D_cse2,_D_cse3,_D_cse4,_D_outputAlias_I_abs,_D_outputAlias_I_arg,capacitor.C,capacitor.P,capacitor.Q,capacitor.S,capacitor.abs_i,capacitor.abs_v,capacitor.arg_i,capacitor.arg_v,capacitor.i.im,capacitor.i.re,capacitor.omega,capacitor.pf,capacitor.pin_n.i.im,capacitor.pin_n.i.re,capacitor.pin_n.reference.gamma,capacitor.pin_n.v.im,capacitor.pin_n.v.re,capacitor.pin_p.i.im,capacitor.pin_p.i.re,capacitor.pin_p.reference.gamma,capacitor.pin_p.v.im,capacitor.pin_p.v.re,capacitor.v.im,capacitor.v.re,complexToPolar.len,complexToPolar.phi,complexToPolar.u.im,complexToPolar.u.re,complexToPolar.useConjugateInput,currentSensor.P,currentSensor.Q,currentSensor.S,currentSensor.abs_i,currentSensor.abs_v,currentSensor.abs_y,currentSensor.arg_i,currentSensor.arg_v,currentSensor.arg_y,currentSensor.i.im,currentSensor.i.re,currentSensor.omega,currentSensor.pf,currentSensor.pin_n.i.im,currentSensor.pin_n.i.re,currentSensor.pin_n.reference.gamma,currentSensor.pin_n.v.im,currentSensor.pin_n.v.re,currentSensor.pin_p.i.im,currentSensor.pin_p.i.re,currentSensor.pin_p.reference.gamma,currentSensor.pin_p.v.im,currentSensor.pin_p.v.re,currentSensor.v.im,currentSensor.v.re,currentSensor.y.im,currentSensor.y.re,der(capacitor.pin_p.reference.gamma),f.duration,f.height,f.offset,f.startTime,f.y,ground.pin.i.im,ground.pin.i.re,ground.pin.reference.gamma,ground.pin.v.im,ground.pin.v.re,inductor.L,inductor.P,inductor.Q,inductor.S,inductor.abs_i,inductor.abs_v,inductor.arg_i,inductor.arg_v,inductor.i.im,inductor.i.re,inductor.omega,inductor.pf,inductor.pin_n.i.im,inductor.pin_n.i.re,inductor.pin_n.reference.gamma,inductor.pin_n.v.im,inductor.pin_n.v.re,inductor.pin_p.i.im,inductor.pin_p.i.re,inductor.pin_p.reference.gamma,inductor.pin_p.v.im,inductor.pin_p.v.re,inductor.v.im,inductor.v.re,phi.k,phi.y,polarToComplex.len,polarToComplex.phi,polarToComplex.y.im,polarToComplex.y.re,resistor.LossPower,resistor.P,resistor.Q,resistor.R_actual,resistor.R_ref,resistor.S,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.abs_i,resistor.abs_v,resistor.alpha_ref,resistor.arg_i,resistor.arg_v,resistor.i.im,resistor.i.re,resistor.omega,resistor.pf,resistor.pin_n.i.im,resistor.pin_n.i.re,resistor.pin_n.reference.gamma,resistor.pin_n.v.im,resistor.pin_n.v.re,resistor.pin_p.i.im,resistor.pin_p.i.re,resistor.pin_p.reference.gamma,resistor.pin_p.v.im,resistor.pin_p.v.re,resistor.useHeatPort,resistor.v.im,resistor.v.re,time,voltageSource.P,voltageSource.Q,voltageSource.S,voltageSource.V.im,voltageSource.V.re,voltageSource.abs_i,voltageSource.abs_v,voltageSource.arg_i,voltageSource.arg_v,voltageSource.f,voltageSource.gamma,voltageSource.i.im,voltageSource.i.re,voltageSource.omega,voltageSource.pf,voltageSource.pin_n.i.im,voltageSource.pin_n.i.re,voltageSource.pin_n.reference.gamma,voltageSource.pin_n.v.im,voltageSource.pin_n.v.re,voltageSource.pin_p.i.im,voltageSource.pin_p.i.re,voltageSource.pin_p.reference.gamma,voltageSource.pin_p.v.im,voltageSource.pin_p.v.re,voltageSource.v.im,voltageSource.v.re