Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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 2.038/2.038, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003726, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09829/0.09869, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4044/0.5032, allocations: 76.86 MB / 385.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.5035, allocations: 83.56 kB / 385.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03709/0.5406, allocations: 9.746 MB / 395.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.5407, allocations: 0 / 395.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.5407, allocations: 11.81 kB / 395.7 MB, free: 13.77 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.00165/0.5424, allocations: 0.67 MB / 396.3 MB, free: 13.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.5425, allocations: 11.69 kB / 396.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006838/0.5431, allocations: 87.12 kB / 396.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005014/0.5437, allocations: 302 kB / 396.7 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.5437, allocations: 28.12 kB / 396.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.223e-05/0.5438, allocations: 39.48 kB / 396.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008573/0.5447, allocations: 356.7 kB / 397.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.5447, allocations: 0 / 397.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.5448, allocations: 13.72 kB / 397.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.5448, allocations: 7.5 kB / 397.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007246/0.5455, allocations: 258.7 kB / 397.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002837/0.5484, allocations: 1.337 MB / 398.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005339/0.5489, allocations: 204.1 kB / 399 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009257/0.5499, allocations: 0.8681 MB / 399.8 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.5499, allocations: 33.44 kB / 399.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 1.954e-06/0.55, allocations: 0 / 399.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008312/0.5508, allocations: 236.8 kB / 400.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.5508, allocations: 80.98 kB / 400.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003626/0.5512, allocations: 280.7 kB / 400.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.5513, allocations: 28.89 kB / 400.5 MB, free: 11.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.5514, allocations: 298.7 kB / 400.8 MB, free: 10.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.5515, allocations: 64.23 kB / 400.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.79e-05/0.5515, allocations: 3.75 kB / 400.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.455e-05/0.5516, allocations: 329.2 kB / 401.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.5518, allocations: 67.22 kB / 401.2 MB, free: 10.47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.5521, allocations: 196.8 kB / 401.4 MB, free: 10.31 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.5524, allocations: 109.1 kB / 401.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.5524, allocations: 0 / 401.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007511/0.5532, allocations: 304.7 kB / 401.8 MB, free: 10.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.5532, allocations: 15.47 kB / 401.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.5533, allocations: 3.875 kB / 401.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.5533, allocations: 7.469 kB / 401.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.5538, allocations: 76.94 kB / 401.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.5538, allocations: 19.41 kB / 401.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.5542, allocations: 41.81 kB / 402 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.5543, allocations: 11.5 kB / 402 MB, free: 10.19 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000219/0.5545, allocations: 150.1 kB / 402.1 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.629e-05/0.5546, allocations: 31.22 kB / 402.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.32e-05/0.5547, allocations: 27.66 kB / 402.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.5547, allocations: 3.719 kB / 402.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.5547, allocations: 4.25 kB / 402.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.5547, allocations: 0 / 402.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009065/0.5556, allocations: 0.5195 MB / 402.7 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.5557, allocations: 3.938 kB / 402.7 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003848/0.5561, allocations: 62.45 kB / 402.8 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.5561, allocations: 3.938 kB / 402.8 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.5561, allocations: 0 / 402.8 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.932e-06/0.5561, allocations: 3.953 kB / 402.8 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5561, allocations: 3.984 kB / 402.8 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007613/0.5569, allocations: 438.5 kB / 403.2 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.079e-05/0.557, allocations: 104.4 kB / 403.3 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.166e-05/0.5571, allocations: 3.938 kB / 403.3 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000333/0.5574, allocations: 18.98 kB / 403.4 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.5575, allocations: 18.69 kB / 403.4 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.5575, allocations: 3.938 kB / 403.4 MB, free: 9.355 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000254/0.5578, allocations: 191.7 kB / 403.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5578, allocations: 0 / 403.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006365/0.5584, allocations: 84.81 kB / 403.6 MB, free: 9.262 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001871/0.5587, allocations: 122 kB / 403.8 MB, free: 9.164 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006002/0.5593, allocations: 193.6 kB / 404 MB, free: 9.145 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5593, allocations: 0 / 404 MB, free: 9.145 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.5595, allocations: 74.25 kB / 404 MB, free: 9.137 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.5599, allocations: 32.88 kB / 404.1 MB, free: 9.133 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.5615, allocations: 0.8494 MB / 404.9 MB, free: 8.582 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.5617, allocations: 0.7808 MB / 405.7 MB, free: 7.879 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.5619, allocations: 27.19 kB / 405.7 MB, free: 7.871 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5619, allocations: 4 kB / 405.7 MB, free: 7.867 MB / 314.7 MB Notification: Performance of Templates: time 0.007394/0.5693, allocations: 3.387 MB / 409.1 MB, free: 6.707 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