Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.862/1.862, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003585, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08463/0.08501, allocations: 44.52 MB / 308.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3375/0.4226, allocations: 76.86 MB / 385.3 MB, free: 18.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.4229, allocations: 82.58 kB / 385.4 MB, free: 18.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03435/0.4573, allocations: 9.744 MB / 395.1 MB, free: 17.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.473e-06/0.4573, allocations: 0 / 395.1 MB, free: 17.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.4574, allocations: 7.75 kB / 395.1 MB, free: 17.74 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.001397/0.4588, allocations: 0.6741 MB / 395.8 MB, free: 17.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.4588, allocations: 11.69 kB / 395.8 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006881/0.4595, allocations: 89.09 kB / 395.9 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004719/0.46, allocations: 308.6 kB / 396.2 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.4601, allocations: 19.94 kB / 396.2 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.739e-05/0.4601, allocations: 34.31 kB / 396.3 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007501/0.4609, allocations: 359.2 kB / 396.6 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.4609, allocations: 0 / 396.6 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.469e-05/0.461, allocations: 18.22 kB / 396.6 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.461, allocations: 7.625 kB / 396.7 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006573/0.4617, allocations: 249.2 kB / 396.9 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/0.464, allocations: 1.337 MB / 398.2 MB, free: 16.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/0.4645, allocations: 194.7 kB / 398.4 MB, free: 16.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008929/0.4654, allocations: 0.8741 MB / 399.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.4655, allocations: 37.97 kB / 399.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.992e-06/0.4655, allocations: 3.938 kB / 399.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006958/0.4662, allocations: 239.1 kB / 399.6 MB, free: 15.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.4662, allocations: 77.11 kB / 399.6 MB, free: 15.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.4666, allocations: 251.4 kB / 399.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.4666, allocations: 29.2 kB / 399.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.4667, allocations: 300.8 kB / 400.2 MB, free: 14.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/0.4668, allocations: 60.67 kB / 400.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.614e-05/0.4668, allocations: 3.75 kB / 400.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.603e-05/0.4669, allocations: 322.4 kB / 400.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.4671, allocations: 72.47 kB / 400.7 MB, free: 14.46 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000243/0.4673, allocations: 200.5 kB / 400.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002594/0.4676, allocations: 107.2 kB / 401 MB, free: 14.28 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.371e-06/0.4676, allocations: 0 / 401 MB, free: 14.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006822/0.4683, allocations: 308.8 kB / 401.3 MB, free: 14.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4684, allocations: 8.312 kB / 401.3 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.975e-06/0.4684, allocations: 7.828 kB / 401.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.4684, allocations: 11.72 kB / 401.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003803/0.4688, allocations: 83.41 kB / 401.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.4688, allocations: 7.719 kB / 401.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.4692, allocations: 42.11 kB / 401.4 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.4692, allocations: 15.19 kB / 401.4 MB, free: 14.17 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.0002054/0.4694, allocations: 157.7 kB / 401.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.218e-05/0.4695, allocations: 22.97 kB / 401.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.691e-05/0.4696, allocations: 31.25 kB / 401.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.345e-06/0.4696, allocations: 15.16 kB / 401.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.655e-06/0.4696, allocations: 0 / 401.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.034e-06/0.4697, allocations: 0 / 401.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008765/0.4705, allocations: 0.509 MB / 402.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.702e-06/0.4706, allocations: 3.875 kB / 402.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/0.4709, allocations: 49.09 kB / 402.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.165e-06/0.4709, allocations: 3.953 kB / 402.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.4709, allocations: 7.359 kB / 402.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.573e-06/0.471, allocations: 3.938 kB / 402.2 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.784e-06/0.471, allocations: 7.891 kB / 402.2 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006699/0.4717, allocations: 461.4 kB / 402.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.92e-05/0.4718, allocations: 98.47 kB / 402.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.327e-05/0.4718, allocations: 7.719 kB / 402.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.4721, allocations: 15.83 kB / 402.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.4722, allocations: 13.86 kB / 402.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.4722, allocations: 7.562 kB / 402.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002471/0.4725, allocations: 198.7 kB / 403 MB, free: 13.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.46e-07/0.4725, allocations: 4.062 kB / 403 MB, free: 13.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006134/0.4731, allocations: 84.66 kB / 403.1 MB, free: 13.2 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.0001804/0.4733, allocations: 121 kB / 403.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005462/0.4739, allocations: 197.7 kB / 403.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.295e-06/0.4739, allocations: 0 / 403.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002132/0.4742, allocations: 72.3 kB / 403.5 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.4746, allocations: 35.55 kB / 403.5 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/0.476, allocations: 0.8374 MB / 404.4 MB, free: 12.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.4762, allocations: 0.7832 MB / 405.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.67e-05/0.4764, allocations: 30.67 kB / 405.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.737e-06/0.4764, allocations: 0 / 405.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of Templates: time 0.006659/0.483, allocations: 3.393 MB / 408.6 MB, free: 11.16 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