Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 194.9 MB / 211.7 MB, free: 2.852 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003617, allocations: 8 kB / 264.6 MB, free: 12.88 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09749/0.09788, allocations: 44.51 MB / 309.1 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5285/0.6264, allocations: 151.9 MB / 461 MB, free: 3.648 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003959/0.6268, allocations: 106.1 kB / 461.1 MB, free: 3.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.819/2.446, allocations: 389.8 MB / 0.831 GB, free: 19.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.344e-06/2.446, allocations: 0 / 0.831 GB, free: 19.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001001/2.447, allocations: 287.6 kB / 0.8312 GB, free: 19.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.05936/2.506, allocations: 11.94 MB / 0.8429 GB, free: 7.344 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/2.506, allocations: 8.031 kB / 0.8429 GB, free: 7.336 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04622/2.553, allocations: 5.233 MB / 0.848 GB, free: 2.082 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.448/3.001, allocations: 9.662 MB / 0.8575 GB, free: 25.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001637/3.002, allocations: 0.8968 MB / 0.8583 GB, free: 25.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005853/3.008, allocations: 1.183 MB / 0.8595 GB, free: 25.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06699/3.075, allocations: 19.57 MB / 0.8786 GB, free: 24.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000778/3.076, allocations: 20.44 kB / 0.8786 GB, free: 24.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005138/3.081, allocations: 0.4993 MB / 0.8791 GB, free: 24.06 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001632/3.083, allocations: 0.772 MB / 0.8799 GB, free: 24.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05395/3.137, allocations: 17.39 MB / 0.8968 GB, free: 23.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1648/3.302, allocations: 63.21 MB / 0.9586 GB, free: 13.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04151/3.343, allocations: 22.42 MB / 0.9805 GB, free: 13.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07049/3.414, allocations: 22.91 MB / 1.003 GB, free: 256 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001249/3.414, allocations: 103.1 kB / 1.003 GB, free: 144 kB / 458.7 MB Notification: Performance of pre-optimization done (n=754): time 1.361e-05/3.414, allocations: 2.188 kB / 1.003 GB, free: 144 kB / 458.7 MB Notification: Performance of matching and sorting (n=764): time 0.5685/3.983, allocations: 41.71 MB / 1.044 GB, free: 65.36 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.972e-05/3.983, allocations: 147.1 kB / 1.044 GB, free: 65.26 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01262/3.995, allocations: 4.396 MB / 1.048 GB, free: 64.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001835/3.997, allocations: 128.4 kB / 1.048 GB, free: 64.89 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004863/4.002, allocations: 4.757 MB / 1.053 GB, free: 62.54 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004486/4.007, allocations: 2.54 MB / 1.055 GB, free: 60.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001917/4.009, allocations: 152.5 kB / 1.056 GB, free: 60.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001112/4.01, allocations: 0.6319 MB / 1.056 GB, free: 60.57 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02135/4.031, allocations: 4.839 MB / 1.061 GB, free: 60.55 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01961/4.051, allocations: 6.689 MB / 1.067 GB, free: 58.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01615/4.067, allocations: 5.976 MB / 1.073 GB, free: 58.45 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.573e-05/4.067, allocations: 20.28 kB / 1.073 GB, free: 58.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.04907/4.116, allocations: 14.49 MB / 1.087 GB, free: 57.72 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/4.116, allocations: 31.47 kB / 1.087 GB, free: 57.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002098/4.117, allocations: 54.22 kB / 1.087 GB, free: 57.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01272/4.129, allocations: 3.38 MB / 1.091 GB, free: 57.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01175/4.141, allocations: 1.489 MB / 1.092 GB, free: 57.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01918/4.16, allocations: 13.89 MB / 1.106 GB, free: 49.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009461/4.17, allocations: 395.9 kB / 1.106 GB, free: 49.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002297/4.172, allocations: 338.8 kB / 1.106 GB, free: 49.51 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (791): * Single equations (assignments): 726 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.01255/4.185, allocations: 4.261 MB / 1.111 GB, free: 47.46 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002661/4.188, allocations: 0.5938 MB / 1.111 GB, free: 47.15 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03907/4.227, allocations: 13.7 MB / 1.125 GB, free: 41.06 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02609/4.253, allocations: 10.43 MB / 1.135 GB, free: 36.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.244e-05/4.253, allocations: 5.5 kB / 1.135 GB, free: 36.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001421/4.253, allocations: 34.08 kB / 1.135 GB, free: 36.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0726/4.326, allocations: 28.21 MB / 1.162 GB, free: 21.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001119/4.326, allocations: 13.77 kB / 1.162 GB, free: 21.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008582/4.334, allocations: 0.9581 MB / 1.163 GB, free: 20.47 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01198/4.346, allocations: 3.474 MB / 1.167 GB, free: 17.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001967/4.348, allocations: 165.7 kB / 1.167 GB, free: 17.51 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02522/4.374, allocations: 18.37 MB / 1.185 GB, free: 15.72 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/4.374, allocations: 4 kB / 1.185 GB, free: 15.72 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4305/4.804, allocations: 20.53 MB / 1.205 GB, free: 77.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01041/4.815, allocations: 1.741 MB / 1.207 GB, free: 77.08 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004695/4.82, allocations: 120 kB / 1.207 GB, free: 77.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01162/4.831, allocations: 316.5 kB / 1.207 GB, free: 77.08 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004067/4.835, allocations: 0.555 MB / 1.208 GB, free: 77.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002589/4.838, allocations: 207.4 kB / 1.208 GB, free: 77.07 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01334/4.851, allocations: 2.941 MB / 1.211 GB, free: 76.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.563e-06/4.851, allocations: 1.656 kB / 1.211 GB, free: 76.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01935/4.871, allocations: 2.162 MB / 1.213 GB, free: 76.89 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (512): * Single equations (assignments): 446 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.003979/4.875, allocations: 0.741 MB / 1.213 GB, free: 76.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.05053/4.925, allocations: 12.23 MB / 1.225 GB, free: 76.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/4.926, allocations: 5.219 kB / 1.225 GB, free: 76.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02891/4.954, allocations: 6.694 MB / 1.232 GB, free: 75.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01843/4.973, allocations: 1.313 MB / 1.233 GB, free: 75.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1014/5.074, allocations: 29.3 MB / 1.262 GB, free: 64.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01627/5.091, allocations: 7.775 MB / 1.269 GB, free: 63.73 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01069/5.101, allocations: 1.818 MB / 1.271 GB, free: 63.53 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002965/5.104, allocations: 419.8 kB / 1.272 GB, free: 63.53 MB / 490.7 MB Notification: Performance of SimCode: time 1.273e-06/5.105, allocations: 0 / 1.272 GB, free: 63.53 MB / 490.7 MB Notification: Performance of Templates: time 0.6987/5.803, allocations: 127.5 MB / 1.396 GB, free: 78.07 MB / 490.7 MB