Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.504/2.504, allocations: 195 MB / 202.9 MB, free: 6.711 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.324e-05/4.348e-05, allocations: 2.75 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1401, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5269/0.6671, allocations: 76.27 MB / 370.5 MB, free: 6.914 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.6674, allocations: 79.34 kB / 370.6 MB, free: 6.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06991/0.7374, allocations: 15.9 MB / 386.5 MB, free: 18.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7374, allocations: 0 / 386.5 MB, free: 18.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.7375, allocations: 11.72 kB / 386.5 MB, free: 18.24 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.00277/0.7402, allocations: 0.7598 MB / 387.3 MB, free: 17.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.7403, allocations: 15.5 kB / 387.3 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002397/0.7406, allocations: 81.72 kB / 387.4 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005536/0.7461, allocations: 430.3 kB / 387.8 MB, free: 17.47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007113/0.7469, allocations: 326.7 kB / 388.1 MB, free: 17.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.7469, allocations: 24.78 kB / 388.1 MB, free: 17.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.7471, allocations: 31.34 kB / 388.2 MB, free: 17.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001807/0.7489, allocations: 0.5797 MB / 388.8 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.7504, allocations: 444.9 kB / 389.2 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.164e-05/0.7505, allocations: 0 / 389.2 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.389e-05/0.7506, allocations: 0 / 389.2 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.7506, allocations: 15.31 kB / 389.2 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005865/0.7565, allocations: 1.998 MB / 391.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005193/0.7617, allocations: 2.948 MB / 394.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.7628, allocations: 242.7 kB / 394.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.7631, allocations: 90.52 kB / 394.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/0.7631, allocations: 41.64 kB / 394.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 5.531e-06/0.7632, allocations: 0 / 394.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.003107/0.7663, allocations: 470.9 kB / 395 MB, free: 12.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.7664, allocations: 55.09 kB / 395 MB, free: 12.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003666/0.7668, allocations: 168.9 kB / 395.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.475e-05/0.7669, allocations: 25.7 kB / 395.2 MB, free: 12.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.7672, allocations: 248.5 kB / 395.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.7675, allocations: 158.6 kB / 395.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.7676, allocations: 0 / 395.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002801/0.7679, allocations: 336.2 kB / 395.9 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000569/0.7685, allocations: 139.2 kB / 396.1 MB, free: 11.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007185/0.7692, allocations: 246.5 kB / 396.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/0.7712, allocations: 263.4 kB / 396.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.7713, allocations: 3.938 kB / 396.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003639/0.7749, allocations: 0.5891 MB / 397.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.775, allocations: 7.781 kB / 397.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.775, allocations: 3.906 kB / 397.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008546/0.7759, allocations: 75.84 kB / 397.3 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.7775, allocations: 116 kB / 397.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004103/0.7817, allocations: 1.576 MB / 398.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.7827, allocations: 42.98 kB / 399 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.7829, allocations: 23.12 kB / 399 MB, free: 10.1 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003152/0.7832, allocations: 120.5 kB / 399.1 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.7835, allocations: 27.22 kB / 399.2 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003671/0.7872, allocations: 0.5443 MB / 399.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.7872, allocations: 7.875 kB / 399.7 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.7873, allocations: 0 / 399.7 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.731e-05/0.7873, allocations: 7.969 kB / 399.7 MB, free: 9.789 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005616/0.7929, allocations: 1.118 MB / 400.8 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/0.793, allocations: 0 / 400.8 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.7943, allocations: 86.42 kB / 400.9 MB, free: 9.246 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007666/0.7952, allocations: 73.41 kB / 401 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.7953, allocations: 4.062 kB / 401 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00356/0.7989, allocations: 1.572 MB / 402.6 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.7989, allocations: 3.938 kB / 402.6 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004885/0.8038, allocations: 0.8197 MB / 403.4 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.8041, allocations: 119.4 kB / 403.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.8043, allocations: 0 / 403.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007736/0.8051, allocations: 15.53 kB / 403.5 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.8053, allocations: 35.31 kB / 403.6 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.871e-05/0.8054, allocations: 15.31 kB / 403.6 MB, free: 7.488 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002405/0.8057, allocations: 127.2 kB / 403.7 MB, free: 7.406 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.8057, allocations: 0 / 403.7 MB, free: 7.406 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001512/0.8073, allocations: 150.6 kB / 403.8 MB, free: 7.371 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 45 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003622/0.8109, allocations: 1.533 MB / 405.4 MB, free: 6.402 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.8135, allocations: 0.5193 MB / 405.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/0.8136, allocations: 0.9375 kB / 405.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.8152, allocations: 346.2 kB / 406.2 MB, free: 6.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007973/0.8161, allocations: 11.16 kB / 406.2 MB, free: 6.117 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008059/0.8242, allocations: 1.083 MB / 407.3 MB, free: 5.633 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008176/0.8251, allocations: 0.829 MB / 408.2 MB, free: 4.871 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007532/0.8259, allocations: 58.34 kB / 408.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005105/0.8264, allocations: 133.5 kB / 408.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.964e-06/0.8264, allocations: 0 / 408.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1022/0.9286, allocations: 6.39 MB / 414.7 MB, free: 1.785 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004489/0.9291, allocations: 171.9 kB / 414.9 MB, free: 1.594 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.671/4.6, allocations: 0 / 414.9 MB, free: 1.594 MB / 314.7 MB "" Variables in the reference:time,resistor.pin_p.reference.gamma Variables in the result:I.k,I.y,V_abs,V_arg,_D_cse1,_D_cse2,_D_cse3,_D_cse4,_D_outputAlias_V_abs,_D_outputAlias_V_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,currentSource.I.im,currentSource.I.re,currentSource.P,currentSource.Q,currentSource.S,currentSource.abs_i,currentSource.abs_v,currentSource.arg_i,currentSource.arg_v,currentSource.f,currentSource.gamma,currentSource.i.im,currentSource.i.re,currentSource.omega,currentSource.pf,currentSource.pin_n.i.im,currentSource.pin_n.i.re,currentSource.pin_n.reference.gamma,currentSource.pin_n.v.im,currentSource.pin_n.v.re,currentSource.pin_p.i.im,currentSource.pin_p.i.re,currentSource.pin_p.reference.gamma,currentSource.pin_p.v.im,currentSource.pin_p.v.re,currentSource.v.im,currentSource.v.re,der(currentSource.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,voltageSensor.P,voltageSensor.Q,voltageSensor.S,voltageSensor.abs_i,voltageSensor.abs_v,voltageSensor.abs_y,voltageSensor.arg_i,voltageSensor.arg_v,voltageSensor.arg_y,voltageSensor.i.im,voltageSensor.i.re,voltageSensor.omega,voltageSensor.pf,voltageSensor.pin_n.i.im,voltageSensor.pin_n.i.re,voltageSensor.pin_n.reference.gamma,voltageSensor.pin_n.v.im,voltageSensor.pin_n.v.re,voltageSensor.pin_p.i.im,voltageSensor.pin_p.i.re,voltageSensor.pin_p.reference.gamma,voltageSensor.pin_p.v.im,voltageSensor.pin_p.v.re,voltageSensor.v.im,voltageSensor.v.re,voltageSensor.y.im,voltageSensor.y.re