Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-05,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|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|vfController3.x",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.812/1.812, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004779/0.0004782, allocations: 12 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08715/0.08766, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4091/0.4968, allocations: 102.5 MB / 375.1 MB, free: 3.5 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.4971, allocations: 97.19 kB / 375.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9311/1.428, allocations: 160 MB / 0.5227 GB, free: 27.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.068e-06/1.428, allocations: 0 / 0.5227 GB, free: 27.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0009443/1.429, allocations: 167.8 kB / 0.5229 GB, free: 27.19 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.04313/1.472, allocations: 7.003 MB / 0.5297 GB, free: 20.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/1.472, allocations: 8.031 kB / 0.5297 GB, free: 20.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/1.484, allocations: 1.123 MB / 0.5308 GB, free: 18.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02382/1.508, allocations: 4.914 MB / 0.5356 GB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009474/1.509, allocations: 0.5095 MB / 0.5361 GB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003752/1.512, allocations: 0.6756 MB / 0.5368 GB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04219/1.555, allocations: 8.84 MB / 0.5454 GB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005128/1.555, allocations: 15.83 kB / 0.5454 GB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003073/1.558, allocations: 288 kB / 0.5457 GB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005189/1.559, allocations: 309.7 kB / 0.546 GB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5728/2.132, allocations: 6.866 MB / 0.5527 GB, free: 33.25 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0735/2.205, allocations: 27.69 MB / 0.5798 GB, free: 28.19 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00939/2.215, allocations: 5.473 MB / 0.5851 GB, free: 25.8 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003415/2.215, allocations: 29.73 kB / 0.5851 GB, free: 25.8 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.241e-05/2.215, allocations: 67.33 kB / 0.5852 GB, free: 25.75 MB / 346.8 MB Notification: Performance of pre-optimization done (n=268): time 6.302e-06/2.215, allocations: 0 / 0.5852 GB, free: 25.75 MB / 346.8 MB Notification: Performance of matching and sorting (n=316): time 0.05021/2.265, allocations: 13.83 MB / 0.5987 GB, free: 22.85 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/2.266, allocations: 87.66 kB / 0.5988 GB, free: 22.79 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01001/2.276, allocations: 3.48 MB / 0.6022 GB, free: 21.48 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009298/2.277, allocations: 81.52 kB / 0.6023 GB, free: 21.41 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004535/2.281, allocations: 2.997 MB / 0.6052 GB, free: 19.14 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002167/2.283, allocations: 1.074 MB / 0.6062 GB, free: 18.3 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000507/2.284, allocations: 75.25 kB / 0.6063 GB, free: 18.25 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0003397/2.284, allocations: 453.5 kB / 0.6067 GB, free: 17.88 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004628/2.289, allocations: 1.603 MB / 0.6083 GB, free: 17.24 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005408/2.294, allocations: 2.6 MB / 0.6108 GB, free: 15.4 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00534/2.3, allocations: 2.101 MB / 0.6129 GB, free: 14.46 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.983e-05/2.3, allocations: 8.688 kB / 0.6129 GB, free: 14.46 MB / 346.8 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.0157/2.316, allocations: 5.671 MB / 0.6184 GB, free: 12.14 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/2.316, allocations: 22.06 kB / 0.6185 GB, free: 12.14 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.498e-05/2.316, allocations: 27.47 kB / 0.6185 GB, free: 12.14 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003894/2.32, allocations: 0.9496 MB / 0.6194 GB, free: 11.81 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005843/2.326, allocations: 0.7851 MB / 0.6202 GB, free: 11.78 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02228/2.348, allocations: 15.18 MB / 0.635 GB, free: 0 / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005135/2.353, allocations: 173.3 kB / 0.6352 GB, free: 15.98 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008253/2.354, allocations: 154.4 kB / 0.6353 GB, free: 15.95 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 137 * 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 (407): * Single equations (assignments): 399 * 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: 6 * 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: 6 {(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 18,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00676/2.361, allocations: 2.126 MB / 0.6374 GB, free: 14.88 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001878/2.363, allocations: 398 kB / 0.6378 GB, free: 14.67 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01696/2.38, allocations: 5.017 MB / 0.6427 GB, free: 12.38 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.026e-05/2.38, allocations: 30.34 kB / 0.6427 GB, free: 12.38 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.743e-05/2.38, allocations: 21.77 kB / 0.6427 GB, free: 12.37 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.154e-05/2.38, allocations: 15 kB / 0.6427 GB, free: 12.37 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05245/2.432, allocations: 12.77 MB / 0.6552 GB, free: 5.398 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.448e-05/2.433, allocations: 4 kB / 0.6552 GB, free: 5.395 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0056/2.438, allocations: 471.6 kB / 0.6557 GB, free: 5.004 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006841/2.445, allocations: 1.061 MB / 0.6567 GB, free: 4.125 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008436/2.446, allocations: 75.66 kB / 0.6568 GB, free: 4.055 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04502/2.491, allocations: 18.47 MB / 0.6748 GB, free: 2.035 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-05/2.491, allocations: 10.81 kB / 0.6748 GB, free: 2.027 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02289/2.514, allocations: 7.225 MB / 0.6819 GB, free: 11.42 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003569/2.518, allocations: 0.8278 MB / 0.6827 GB, free: 10.65 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001773/2.519, allocations: 78.58 kB / 0.6827 GB, free: 10.58 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004522/2.524, allocations: 154.6 kB / 0.6829 GB, free: 10.45 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/2.525, allocations: 237.6 kB / 0.6831 GB, free: 10.3 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004022/2.526, allocations: 91.31 kB / 0.6832 GB, free: 10.22 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.007518/2.533, allocations: 2.354 MB / 0.6855 GB, free: 8.254 MB / 394.8 MB Notification: Performance of sort global known variables: time 7.61e-07/2.533, allocations: 0 / 0.6855 GB, free: 8.254 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.008242/2.541, allocations: 1.275 MB / 0.6868 GB, free: 6.984 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (236): * Single equations (assignments): 229 * 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 {(4,93.8%) 16,(1,100.0%) 5,(4,93.8%) 16,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001642/2.543, allocations: 0.5329 MB / 0.6873 GB, free: 6.543 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01587/2.559, allocations: 5.3 MB / 0.6924 GB, free: 1.645 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/2.559, allocations: 4 kB / 0.6925 GB, free: 1.641 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.2862/2.845, allocations: 3.36 MB / 0.6957 GB, free: 72.22 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008333/2.854, allocations: 1.037 MB / 0.6967 GB, free: 72.2 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03744/2.891, allocations: 15.15 MB / 0.7115 GB, free: 65.9 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008668/2.9, allocations: 4.452 MB / 0.7159 GB, free: 65 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.005039/2.905, allocations: 0.7928 MB / 0.7167 GB, free: 64.91 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/2.906, allocations: 254.6 kB / 0.7169 GB, free: 64.91 MB / 394.8 MB Notification: Performance of SimCode: time 1.473e-06/2.906, allocations: 2.734 kB / 0.7169 GB, free: 64.91 MB / 394.8 MB Notification: Performance of Templates: time 0.1689/3.075, allocations: 63.68 MB / 0.7791 GB, free: 50.52 MB / 394.8 MB