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.969/1.969, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.475e-05/3.493e-05, allocations: 11.94 kB / 249.6 MB, free: 15.28 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2916, allocations: 44.48 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4159, allocations: 76.13 MB / 370.2 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.4162, allocations: 75.95 kB / 370.3 MB, free: 5.785 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03593/0.4522, allocations: 9.544 MB / 379.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.55e-06/0.4522, allocations: 3.938 kB / 379.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.246e-05/0.4522, allocations: 8 kB / 379.9 MB, free: 12.13 MB / 330.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.001412/0.4537, allocations: 0.6353 MB / 380.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.4537, allocations: 8.031 kB / 380.5 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006336/0.4544, allocations: 87.44 kB / 380.6 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.4549, allocations: 295.9 kB / 380.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.455, allocations: 12 kB / 380.9 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.243e-05/0.4551, allocations: 20 kB / 380.9 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005484/0.4556, allocations: 205.5 kB / 381.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006562/0.4563, allocations: 288.9 kB / 381.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.4563, allocations: 3.984 kB / 381.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.4564, allocations: 0 / 381.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.4564, allocations: 8 kB / 381.4 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002716/0.4591, allocations: 1.315 MB / 382.7 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.4595, allocations: 153.2 kB / 382.9 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.4597, allocations: 75.02 kB / 382.9 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001137/0.4609, allocations: 0.8672 MB / 383.8 MB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.4609, allocations: 38.5 kB / 383.8 MB, free: 7.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.759e-06/0.4609, allocations: 0 / 383.8 MB, free: 7.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003857/0.4613, allocations: 125.4 kB / 384 MB, free: 7.691 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.4614, allocations: 85.05 kB / 384.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.4617, allocations: 230.3 kB / 384.3 MB, free: 7.352 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.4618, allocations: 25.7 kB / 384.3 MB, free: 7.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.462, allocations: 302 kB / 384.6 MB, free: 7.023 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.4621, allocations: 51.3 kB / 384.6 MB, free: 6.973 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.3e-05/0.4621, allocations: 0 / 384.6 MB, free: 6.973 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4623, allocations: 322.8 kB / 385 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.4624, allocations: 43.94 kB / 385 MB, free: 6.605 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.4627, allocations: 169.2 kB / 385.2 MB, free: 6.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.4629, allocations: 72.84 kB / 385.2 MB, free: 6.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.2e-06/0.4629, allocations: 0 / 385.2 MB, free: 6.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005514/0.4634, allocations: 233.4 kB / 385.5 MB, free: 6.074 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.4635, allocations: 9.984 kB / 385.5 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4635, allocations: 8 kB / 385.5 MB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.4635, allocations: 4 kB / 385.5 MB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.4639, allocations: 79.83 kB / 385.6 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.4639, allocations: 4 kB / 385.6 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.4642, allocations: 39.92 kB / 385.6 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.4643, allocations: 16 kB / 385.6 MB, free: 5.918 MB / 330.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 0.0001189/0.4644, allocations: 112.7 kB / 385.7 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.826e-05/0.4645, allocations: 23.72 kB / 385.8 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.741e-05/0.4646, allocations: 33.75 kB / 385.8 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.434e-06/0.4646, allocations: 4.094 kB / 385.8 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.858e-06/0.4646, allocations: 3.938 kB / 385.8 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.621e-06/0.4646, allocations: 0 / 385.8 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008281/0.4655, allocations: 443.7 kB / 386.2 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.889e-06/0.4655, allocations: 0 / 386.2 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/0.4658, allocations: 47.91 kB / 386.3 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.438e-06/0.4658, allocations: 3.953 kB / 386.3 MB, free: 5.203 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.4658, allocations: 0 / 386.3 MB, free: 5.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.675e-06/0.4658, allocations: 4 kB / 386.3 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.3e-06/0.4659, allocations: 0 / 386.3 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005181/0.4664, allocations: 375.9 kB / 386.7 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.899e-05/0.4665, allocations: 100.8 kB / 386.8 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.4666, allocations: 0 / 386.8 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.4669, allocations: 20.05 kB / 386.8 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.4669, allocations: 11.97 kB / 386.8 MB, free: 4.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.467, allocations: 8 kB / 386.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002297/0.4672, allocations: 174 kB / 387 MB, free: 4.477 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.28e-07/0.4672, allocations: 0 / 387 MB, free: 4.477 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005845/0.4678, allocations: 75.69 kB / 387 MB, free: 4.402 MB / 330.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.0002027/0.468, allocations: 127.3 kB / 387.2 MB, free: 4.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005153/0.4685, allocations: 124.5 kB / 387.3 MB, free: 4.148 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.233e-06/0.4686, allocations: 448 / 387.3 MB, free: 4.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.4688, allocations: 51.94 kB / 387.3 MB, free: 4.098 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005695/0.4694, allocations: 27.75 kB / 387.4 MB, free: 4.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.4709, allocations: 476.8 kB / 387.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.4714, allocations: 0.7833 MB / 388.6 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.573e-05/0.4715, allocations: 23.44 kB / 388.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of SimCode: time 1.61e-06/0.4715, allocations: 0 / 388.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of Templates: time 0.006907/0.4784, allocations: 3.21 MB / 391.8 MB, free: 15.53 MB / 346.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.useHeatPort,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.useHeatPort,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