Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 2.158/2.158, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003677/0.0003679, allocations: 8 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1075, allocations: 44.52 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5818/0.6894, allocations: 124.6 MB / 433.6 MB, free: 14.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004753/0.69, allocations: 95.75 kB / 433.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8711/1.561, allocations: 123.5 MB / 0.5442 GB, free: 69.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.561, allocations: 0 / 0.5442 GB, free: 69.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005991/1.562, allocations: 138 kB / 0.5443 GB, free: 69.65 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02338/1.585, allocations: 5.601 MB / 0.5498 GB, free: 67.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/1.585, allocations: 7.875 kB / 0.5498 GB, free: 67.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007788/1.593, allocations: 1.004 MB / 0.5508 GB, free: 67.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01762/1.611, allocations: 4.604 MB / 0.5553 GB, free: 66.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005286/1.611, allocations: 403.1 kB / 0.5557 GB, free: 66.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002303/1.614, allocations: 0.5203 MB / 0.5562 GB, free: 66.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02288/1.637, allocations: 6.923 MB / 0.5629 GB, free: 65.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002921/1.637, allocations: 10.59 kB / 0.563 GB, free: 65.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001774/1.639, allocations: 229 kB / 0.5632 GB, free: 65.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003015/1.639, allocations: 245.4 kB / 0.5634 GB, free: 65.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01831/1.657, allocations: 5.58 MB / 0.5689 GB, free: 65.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0567/1.714, allocations: 22.44 MB / 0.5908 GB, free: 57.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01204/1.726, allocations: 8.343 MB / 0.5989 GB, free: 50.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/1.741, allocations: 5.311 MB / 0.6041 GB, free: 48.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.901e-05/1.742, allocations: 62.53 kB / 0.6042 GB, free: 48.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=238): time 5.921e-06/1.742, allocations: 0 / 0.6042 GB, free: 48.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=266): time 0.04583/1.787, allocations: 13 MB / 0.6169 GB, free: 42.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/1.787, allocations: 80.72 kB / 0.6169 GB, free: 42.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006822/1.794, allocations: 3.082 MB / 0.6199 GB, free: 41.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006075/1.795, allocations: 69.48 kB / 0.62 GB, free: 41.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001948/1.797, allocations: 2.447 MB / 0.6224 GB, free: 39.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001171/1.798, allocations: 0.915 MB / 0.6233 GB, free: 38.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/1.798, allocations: 64.31 kB / 0.6234 GB, free: 38.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/1.799, allocations: 433.4 kB / 0.6238 GB, free: 38.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003618/1.802, allocations: 1.43 MB / 0.6252 GB, free: 37.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004227/1.807, allocations: 2.375 MB / 0.6275 GB, free: 36.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004523/1.811, allocations: 1.846 MB / 0.6293 GB, free: 35.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.822e-05/1.811, allocations: 9.656 kB / 0.6293 GB, free: 35.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.01332/1.825, allocations: 4.982 MB / 0.6342 GB, free: 31.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.909e-05/1.825, allocations: 16 kB / 0.6342 GB, free: 31.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-05/1.825, allocations: 28 kB / 0.6342 GB, free: 31.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003747/1.828, allocations: 0.7371 MB / 0.6349 GB, free: 30.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007331/1.836, allocations: 0.7797 MB / 0.6357 GB, free: 30.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02017/1.856, allocations: 9.991 MB / 0.6454 GB, free: 20.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006478/1.863, allocations: 201.5 kB / 0.6456 GB, free: 20.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/1.864, allocations: 139.9 kB / 0.6458 GB, free: 20.08 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (386): * Single equations (assignments): 380 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006042/1.87, allocations: 1.581 MB / 0.6473 GB, free: 18.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001387/1.871, allocations: 351.7 kB / 0.6476 GB, free: 18.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01583/1.887, allocations: 4.463 MB / 0.652 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.455e-05/1.887, allocations: 24 kB / 0.652 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-05/1.887, allocations: 12 kB / 0.652 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.573e-05/1.887, allocations: 10.78 kB / 0.6521 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0288/1.916, allocations: 9.668 MB / 0.6615 GB, free: 6.402 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/1.916, allocations: 4 kB / 0.6615 GB, free: 6.398 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003439/1.92, allocations: 433.5 kB / 0.6619 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004072/1.924, allocations: 0.9696 MB / 0.6629 GB, free: 5.266 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003147/1.924, allocations: 67.31 kB / 0.6629 GB, free: 5.207 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02634/1.95, allocations: 16.31 MB / 0.6789 GB, free: 5.199 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/1.95, allocations: 7.953 kB / 0.6789 GB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3661/2.316, allocations: 6.592 MB / 0.6853 GB, free: 75.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003122/2.32, allocations: 0.736 MB / 0.686 GB, free: 75.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001295/2.321, allocations: 63.34 kB / 0.6861 GB, free: 75.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003677/2.325, allocations: 152.1 kB / 0.6862 GB, free: 75.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007222/2.325, allocations: 200.3 kB / 0.6864 GB, free: 75.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/2.326, allocations: 84.2 kB / 0.6865 GB, free: 75.17 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005734/2.331, allocations: 2.07 MB / 0.6885 GB, free: 75.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.81e-07/2.332, allocations: 3 kB / 0.6885 GB, free: 75.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006626/2.338, allocations: 1.092 MB / 0.6896 GB, free: 75.03 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (209): * Single equations (assignments): 202 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001544/2.34, allocations: 0.5236 MB / 0.6901 GB, free: 74.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01157/2.351, allocations: 4.38 MB / 0.6944 GB, free: 74.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/2.351, allocations: 7.531 kB / 0.6944 GB, free: 74.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008243/2.36, allocations: 2.905 MB / 0.6972 GB, free: 73.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007409/2.367, allocations: 0.8744 MB / 0.6981 GB, free: 73.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02771/2.395, allocations: 12.11 MB / 0.7099 GB, free: 68.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006764/2.402, allocations: 3.521 MB / 0.7133 GB, free: 67.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005035/2.407, allocations: 0.8098 MB / 0.7141 GB, free: 67.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/2.408, allocations: 239.3 kB / 0.7144 GB, free: 67.35 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/2.408, allocations: 0 / 0.7144 GB, free: 67.35 MB / 426.7 MB Notification: Performance of Templates: time 0.1968/2.605, allocations: 54.05 MB / 0.7671 GB, free: 63.92 MB / 426.7 MB