Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.strayReluctance.port_p.Phi.im|smr3.stator.strayReluctance.port_p.Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.601/1.601, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000575/0.0005753, allocations: 15.98 kB / 233.3 MB, free: 3 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07536/0.07598, allocations: 38.77 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3947/0.4708, allocations: 99.41 MB / 371.4 MB, free: 6.973 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.4711, allocations: 88.83 kB / 371.5 MB, free: 6.926 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7404/1.211, allocations: 150.7 MB / 0.51 GB, free: 40.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.633e-06/1.212, allocations: 0 / 0.51 GB, free: 40.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005069/1.212, allocations: 163.8 kB / 0.5102 GB, free: 40.11 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.02251/1.235, allocations: 6.714 MB / 0.5167 GB, free: 33.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/1.235, allocations: 8.031 kB / 0.5167 GB, free: 33.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005947/1.241, allocations: 1.069 MB / 0.5178 GB, free: 32.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/1.253, allocations: 4.712 MB / 0.5224 GB, free: 27.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005172/1.254, allocations: 0.4895 MB / 0.5228 GB, free: 26.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002342/1.256, allocations: 0.6404 MB / 0.5235 GB, free: 26.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02457/1.28, allocations: 8.587 MB / 0.5319 GB, free: 17.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002536/1.281, allocations: 3.906 kB / 0.5319 GB, free: 17.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002019/1.283, allocations: 287.9 kB / 0.5321 GB, free: 17.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002765/1.283, allocations: 285.3 kB / 0.5324 GB, free: 16.92 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01822/1.301, allocations: 6.689 MB / 0.5389 GB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2835/1.585, allocations: 26.5 MB / 0.5648 GB, free: 32.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008096/1.593, allocations: 5.361 MB / 0.5701 GB, free: 29.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002374/1.593, allocations: 31.61 kB / 0.5701 GB, free: 29.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/1.593, allocations: 64.09 kB / 0.5702 GB, free: 29.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=254): time 7.2e-06/1.593, allocations: 0 / 0.5702 GB, free: 29.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=296): time 0.03655/1.63, allocations: 13.17 MB / 0.583 GB, free: 27.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/1.63, allocations: 88.52 kB / 0.5831 GB, free: 27.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0061/1.636, allocations: 2.844 MB / 0.5859 GB, free: 27.13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005231/1.637, allocations: 78.39 kB / 0.586 GB, free: 27.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001731/1.638, allocations: 2.666 MB / 0.5886 GB, free: 25.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001087/1.64, allocations: 1.014 MB / 0.5895 GB, free: 25.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003051/1.64, allocations: 72.81 kB / 0.5896 GB, free: 25.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002273/1.64, allocations: 448.7 kB / 0.59 GB, free: 24.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003442/1.644, allocations: 1.533 MB / 0.5915 GB, free: 24.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004122/1.648, allocations: 2.46 MB / 0.5939 GB, free: 23.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00424/1.652, allocations: 1.985 MB / 0.5959 GB, free: 23.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.815e-05/1.652, allocations: 10.06 kB / 0.5959 GB, free: 23.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=447) (initialization): time 0.01232/1.664, allocations: 5.155 MB / 0.6009 GB, free: 23.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/1.665, allocations: 16.12 kB / 0.6009 GB, free: 23.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.273e-05/1.665, allocations: 35.11 kB / 0.601 GB, free: 23.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003257/1.668, allocations: 0.9103 MB / 0.6019 GB, free: 23.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003901/1.672, allocations: 0.7355 MB / 0.6026 GB, free: 23.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01934/1.691, allocations: 14.79 MB / 0.617 GB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003881/1.695, allocations: 152.2 kB / 0.6172 GB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006955/1.696, allocations: 142.3 kB / 0.6173 GB, free: 12.16 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (381): * Single equations (assignments): 373 * 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%) 16,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 16,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00529/1.701, allocations: 2.064 MB / 0.6193 GB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009873/1.702, allocations: 372 kB / 0.6197 GB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/1.713, allocations: 4.782 MB / 0.6243 GB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.981e-05/1.713, allocations: 30.94 kB / 0.6244 GB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.584e-05/1.713, allocations: 13.53 kB / 0.6244 GB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.189e-05/1.713, allocations: 16.88 kB / 0.6244 GB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/1.741, allocations: 11.71 MB / 0.6358 GB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-05/1.742, allocations: 5.375 kB / 0.6358 GB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002596/1.744, allocations: 434 kB / 0.6363 GB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003591/1.748, allocations: 1.064 MB / 0.6373 GB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004676/1.748, allocations: 72.19 kB / 0.6374 GB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02758/1.776, allocations: 18.46 MB / 0.6554 GB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/1.776, allocations: 8 kB / 0.6554 GB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01673/1.793, allocations: 7.331 MB / 0.6626 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002875/1.796, allocations: 0.7786 MB / 0.6633 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001154/1.797, allocations: 68 kB / 0.6634 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002995/1.8, allocations: 145.4 kB / 0.6635 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007818/1.801, allocations: 227.4 kB / 0.6637 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000291/1.801, allocations: 87.78 kB / 0.6638 GB, free: 12.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005614/1.807, allocations: 2.172 MB / 0.6659 GB, free: 11.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.108e-06/1.807, allocations: 0 / 0.6659 GB, free: 11.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006922/1.813, allocations: 1.201 MB / 0.6671 GB, free: 9.816 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (216): * Single equations (assignments): 209 * 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.001237/1.815, allocations: 0.4885 MB / 0.6676 GB, free: 9.402 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01224/1.827, allocations: 5.071 MB / 0.6725 GB, free: 4.715 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/1.827, allocations: 0 / 0.6725 GB, free: 4.715 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008022/1.835, allocations: 3.269 MB / 0.6757 GB, free: 1.688 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005787/1.841, allocations: 0.9323 MB / 0.6766 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03844/1.879, allocations: 14.75 MB / 0.691 GB, free: 4.434 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009141/1.889, allocations: 4.21 MB / 0.6952 GB, free: 1.266 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001435/1.89, allocations: 257.4 kB / 0.6954 GB, free: 1.023 MB / 394.7 MB Notification: Performance of SimCode: time 1.972e-06/1.89, allocations: 4 kB / 0.6954 GB, free: 1.02 MB / 394.7 MB Notification: Performance of Templates: time 1.107/2.997, allocations: 311.8 MB / 0.9999 GB, free: 89.23 MB / 410.7 MB