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.964/1.964, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.591e-05/4.629e-05, allocations: 4 kB / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07705/0.07712, allocations: 44.5 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3268/0.4039, allocations: 76.76 MB / 376.6 MB, free: 22.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.4042, allocations: 79.95 kB / 376.7 MB, free: 22.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03499/0.4392, allocations: 9.668 MB / 386.4 MB, free: 21.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.915e-06/0.4393, allocations: 0 / 386.4 MB, free: 21.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.4393, allocations: 7.844 kB / 386.4 MB, free: 21.2 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.001321/0.4406, allocations: 0.6392 MB / 387 MB, free: 20.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.4407, allocations: 10.09 kB / 387 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006712/0.4414, allocations: 91.08 kB / 387.1 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004729/0.4419, allocations: 297.2 kB / 387.4 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.028e-05/0.4419, allocations: 30.28 kB / 387.4 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.899e-05/0.442, allocations: 32.44 kB / 387.4 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007082/0.4427, allocations: 334 kB / 387.8 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.4428, allocations: 0 / 387.8 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.205e-05/0.4428, allocations: 14.44 kB / 387.8 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.4429, allocations: 8.688 kB / 387.8 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005541/0.4434, allocations: 228.7 kB / 388 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00253/0.446, allocations: 1.378 MB / 389.4 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.4463, allocations: 175.5 kB / 389.6 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.4465, allocations: 78.61 kB / 389.6 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008444/0.4474, allocations: 0.877 MB / 390.5 MB, free: 18.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.4474, allocations: 38.53 kB / 390.6 MB, free: 18.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 3.48e-06/0.4474, allocations: 0 / 390.6 MB, free: 18.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.000357/0.4478, allocations: 129 kB / 390.7 MB, free: 18.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.83e-05/0.4478, allocations: 81.05 kB / 390.8 MB, free: 18.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.4481, allocations: 247.8 kB / 391 MB, free: 18.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.4482, allocations: 25.7 kB / 391 MB, free: 18.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.4483, allocations: 307 kB / 391.3 MB, free: 18.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.4483, allocations: 50.11 kB / 391.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.502e-05/0.4484, allocations: 3.938 kB / 391.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.489e-05/0.4484, allocations: 324.8 kB / 391.7 MB, free: 17.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.4486, allocations: 49.69 kB / 391.8 MB, free: 17.87 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.4487, allocations: 174.1 kB / 391.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.4489, allocations: 83.12 kB / 392 MB, free: 17.7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.138e-06/0.4489, allocations: 3.938 kB / 392 MB, free: 17.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004892/0.4494, allocations: 262.9 kB / 392.3 MB, free: 17.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.4495, allocations: 10.66 kB / 392.3 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.649e-06/0.4495, allocations: 3.906 kB / 392.3 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.4495, allocations: 7.812 kB / 392.3 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003363/0.4499, allocations: 76.34 kB / 392.4 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.4499, allocations: 11.81 kB / 392.4 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003012/0.4502, allocations: 38.45 kB / 392.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.4503, allocations: 11.72 kB / 392.4 MB, free: 17.59 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 7.926e-05/0.4503, allocations: 120.2 kB / 392.5 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-05/0.4504, allocations: 27.3 kB / 392.6 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.967e-05/0.4505, allocations: 28.75 kB / 392.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4505, allocations: 0 / 392.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4505, allocations: 0 / 392.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.407e-06/0.4506, allocations: 3.281 kB / 392.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007589/0.4513, allocations: 0.5004 MB / 393.1 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.629e-06/0.4514, allocations: 0 / 393.1 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.4517, allocations: 37.56 kB / 393.1 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.015e-06/0.4517, allocations: 0 / 393.1 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.4517, allocations: 11.62 kB / 393.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.381e-06/0.4517, allocations: 0 / 393.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.738e-06/0.4517, allocations: 3.938 kB / 393.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004052/0.4521, allocations: 383.8 kB / 393.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.614e-05/0.4522, allocations: 103.5 kB / 393.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.4523, allocations: 0 / 393.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.4526, allocations: 18.95 kB / 393.6 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.328e-05/0.4527, allocations: 18.81 kB / 393.7 MB, free: 16.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.4527, allocations: 3.906 kB / 393.7 MB, free: 16.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002133/0.4529, allocations: 197.2 kB / 393.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.2e-07/0.4529, allocations: 0 / 393.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005864/0.4535, allocations: 88.64 kB / 393.9 MB, free: 16.64 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.0001686/0.4537, allocations: 132.7 kB / 394.1 MB, free: 16.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003225/0.4541, allocations: 142.8 kB / 394.2 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.572e-06/0.4541, allocations: 3.938 kB / 394.2 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.4542, allocations: 50.62 kB / 394.3 MB, free: 16.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.4546, allocations: 30.19 kB / 394.3 MB, free: 16.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009843/0.4556, allocations: 482.9 kB / 394.8 MB, free: 16.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.4558, allocations: 0.78 MB / 395.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.109e-05/0.4559, allocations: 27 kB / 395.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of SimCode: time 2.284e-06/0.4559, allocations: 0 / 395.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of Templates: time 0.005705/0.4616, allocations: 3.306 MB / 398.9 MB, free: 15.2 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