Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.785e-05/2.801e-05, allocations: 2.156 kB / 255.4 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07689/0.07693, allocations: 44.5 MB / 299.9 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3353/0.4123, allocations: 76.77 MB / 376.6 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.4126, allocations: 78.61 kB / 376.7 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0341/0.4467, allocations: 9.679 MB / 386.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4467, allocations: 0 / 386.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.4468, allocations: 6.656 kB / 386.4 MB, free: 21.06 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001259/0.448, allocations: 0.639 MB / 387 MB, free: 20.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.4481, allocations: 9.875 kB / 387 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000709/0.4488, allocations: 89.97 kB / 387.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/0.4494, allocations: 298.1 kB / 387.4 MB, free: 20.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.4494, allocations: 24.28 kB / 387.4 MB, free: 20.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.257e-05/0.4495, allocations: 33.66 kB / 387.5 MB, free: 20.33 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007608/0.4503, allocations: 331 kB / 387.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.4503, allocations: 0 / 387.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.976e-05/0.4504, allocations: 14.62 kB / 387.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.4504, allocations: 7.562 kB / 387.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008387/0.4513, allocations: 224.8 kB / 388 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002717/0.454, allocations: 1.379 MB / 389.4 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.4544, allocations: 168.6 kB / 389.6 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.4546, allocations: 77.25 kB / 389.7 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009295/0.4555, allocations: 0.8727 MB / 390.5 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.4556, allocations: 37.75 kB / 390.6 MB, free: 18.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 3.354e-06/0.4556, allocations: 4 kB / 390.6 MB, free: 18.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003773/0.456, allocations: 126.9 kB / 390.7 MB, free: 18.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.456, allocations: 83.88 kB / 390.8 MB, free: 18.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.4564, allocations: 243.7 kB / 391 MB, free: 18.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.4564, allocations: 29.2 kB / 391 MB, free: 18.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.4566, allocations: 296.5 kB / 391.3 MB, free: 18.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.915e-05/0.4566, allocations: 51.94 kB / 391.4 MB, free: 18.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.4566, allocations: 4.562 kB / 391.4 MB, free: 18.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.98e-05/0.4567, allocations: 326.3 kB / 391.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.4568, allocations: 52.81 kB / 391.8 MB, free: 17.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.457, allocations: 179.6 kB / 391.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.4572, allocations: 75.88 kB / 392 MB, free: 17.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.011e-06/0.4573, allocations: 0 / 392 MB, free: 17.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004842/0.4578, allocations: 256.2 kB / 392.3 MB, free: 17.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4578, allocations: 9.375 kB / 392.3 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.4578, allocations: 7.375 kB / 392.3 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.4578, allocations: 11.81 kB / 392.3 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003633/0.4582, allocations: 76.55 kB / 392.4 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.4582, allocations: 7.844 kB / 392.4 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.4586, allocations: 35.25 kB / 392.4 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.4586, allocations: 15.23 kB / 392.4 MB, free: 17.46 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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 8.802e-05/0.4587, allocations: 123 kB / 392.5 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.385e-05/0.4588, allocations: 31.39 kB / 392.6 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.247e-05/0.4589, allocations: 28.05 kB / 392.6 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.4589, allocations: 3.906 kB / 392.6 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.726e-06/0.4589, allocations: 0 / 392.6 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.637e-06/0.459, allocations: 0 / 392.6 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007965/0.4598, allocations: 0.4919 MB / 393.1 MB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.037e-06/0.4598, allocations: 4.125 kB / 393.1 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.4601, allocations: 42.12 kB / 393.1 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.834e-06/0.4601, allocations: 7.906 kB / 393.1 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.4601, allocations: 7.5 kB / 393.2 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.612e-06/0.4601, allocations: 160 / 393.2 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.221e-06/0.4602, allocations: 3.938 kB / 393.2 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004713/0.4606, allocations: 385 kB / 393.5 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.218e-05/0.4607, allocations: 100.2 kB / 393.6 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.896e-05/0.4608, allocations: 3.234 kB / 393.6 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.4611, allocations: 18.64 kB / 393.7 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.4612, allocations: 6.953 kB / 393.7 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.4612, allocations: 4.031 kB / 393.7 MB, free: 16.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002323/0.4615, allocations: 206.4 kB / 393.9 MB, free: 16.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.4615, allocations: 0 / 393.9 MB, free: 16.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005961/0.4621, allocations: 85.16 kB / 393.9 MB, free: 16.51 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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.0001822/0.4623, allocations: 123.9 kB / 394.1 MB, free: 16.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003363/0.4626, allocations: 138.4 kB / 394.2 MB, free: 16.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.543e-06/0.4627, allocations: 0 / 394.2 MB, free: 16.4 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.4628, allocations: 51.55 kB / 394.3 MB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.4631, allocations: 27.77 kB / 394.3 MB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.4642, allocations: 487 kB / 394.8 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.4645, allocations: 0.7809 MB / 395.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.227e-05/0.4646, allocations: 26.3 kB / 395.6 MB, free: 15.38 MB / 314.7 MB Notification: Performance of SimCode: time 2.742e-06/0.4646, allocations: 3.906 kB / 395.6 MB, free: 15.38 MB / 314.7 MB Notification: Performance of Templates: time 0.006177/0.4708, allocations: 3.287 MB / 398.9 MB, free: 15.07 MB / 314.7 MB "Error: Could not read variable converter_m.Phi.der(im) in file Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat. Warning: Get data of variable converter_m.Phi.der(im) from file Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat failed! " Variables in the reference:time,converter_m.Phi.re,inductor_e.i Variables in the result:L,R,R_m,VRMS,converter_m.N.im,converter_m.N.re,der(converter_m.Phi.re),converter_m.Phi.im,converter_m.Phi.re,converter_m.V_m.im,converter_m.V_m.re,converter_m.abs_Phi,converter_m.abs_V_m,converter_m.arg_Phi,converter_m.arg_V_m,converter_m.effectiveTurns,converter_m.i,converter_m.orientation,converter_m.pin_n.i,converter_m.pin_n.v,converter_m.pin_p.i,converter_m.pin_p.v,converter_m.port_n.Phi.im,converter_m.port_n.Phi.re,converter_m.port_n.V_m.im,converter_m.port_n.V_m.re,converter_m.port_p.Phi.im,converter_m.port_p.Phi.re,converter_m.port_p.V_m.im,converter_m.port_p.V_m.re,converter_m.v,effectiveTurns,f,groundM_m.port_p.Phi.im,groundM_m.port_p.Phi.re,groundM_m.port_p.V_m.im,groundM_m.port_p.V_m.re,ground_e.p.i,ground_e.p.v,ground_m.p.i,ground_m.p.v,inductor_e.L,der(inductor_e.i),inductor_e.i,inductor_e.n.i,inductor_e.n.v,inductor_e.p.i,inductor_e.p.v,inductor_e.v,reluctance_m.Phi.im,reluctance_m.Phi.re,reluctance_m.R_m.d,reluctance_m.R_m.q,reluctance_m.V_m.im,reluctance_m.V_m.re,reluctance_m.abs_Phi,reluctance_m.abs_V_m,reluctance_m.arg_Phi,reluctance_m.arg_V_m,reluctance_m.port_n.Phi.im,reluctance_m.port_n.Phi.re,reluctance_m.port_n.V_m.im,reluctance_m.port_n.V_m.re,reluctance_m.port_p.Phi.im,reluctance_m.port_p.Phi.re,reluctance_m.port_p.V_m.im,reluctance_m.port_p.V_m.re,resistor_e.LossPower,resistor_e.R,resistor_e.R_actual,resistor_e.T,resistor_e.T_heatPort,resistor_e.T_ref,resistor_e.alpha,resistor_e.i,resistor_e.n.i,resistor_e.n.v,resistor_e.p.i,resistor_e.p.v,resistor_e.v,resistor_m.LossPower,resistor_m.R,resistor_m.R_actual,resistor_m.T,resistor_m.T_heatPort,resistor_m.T_ref,resistor_m.alpha,resistor_m.i,resistor_m.n.i,resistor_m.n.v,resistor_m.p.i,resistor_m.p.v,resistor_m.v,time,voltageSource_e.V,voltageSource_e.freqHz,voltageSource_e.i,voltageSource_e.n.i,voltageSource_e.n.v,voltageSource_e.offset,voltageSource_e.p.i,voltageSource_e.p.v,voltageSource_e.phase,voltageSource_e.signalSource.amplitude,voltageSource_e.signalSource.freqHz,voltageSource_e.signalSource.offset,voltageSource_e.signalSource.phase,voltageSource_e.signalSource.startTime,voltageSource_e.signalSource.y,voltageSource_e.startTime,voltageSource_e.v,voltageSource_m.V,voltageSource_m.freqHz,voltageSource_m.i,voltageSource_m.n.i,voltageSource_m.n.v,voltageSource_m.offset,voltageSource_m.p.i,voltageSource_m.p.v,voltageSource_m.phase,voltageSource_m.signalSource.amplitude,voltageSource_m.signalSource.freqHz,voltageSource_m.signalSource.offset,voltageSource_m.signalSource.phase,voltageSource_m.signalSource.startTime,voltageSource_m.signalSource.y,voltageSource_m.startTime,voltageSource_m.v