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.AIMC_DOL_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.AIMC_DOL_MultiPhase,tolerance=1e-05,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|aimc3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc3.stator.strayReluctance.port_p.Phi.im|aimc3.stator.strayReluctance.port_p.Phi.re|aimcM.rotorCage.strayInductor.inductor.4..i|aimcM.rotorCage.strayInductor.inductor.5..i|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimcM.stator.strayReluctance.port_p.Phi.im|aimcM.stator.strayReluctance.port_p.Phi.re|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") Notification: Performance of loadModel(Modelica): time 2.064/2.064, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004715/0.0004717, allocations: 8 kB / 233.9 MB, free: 2.375 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.103, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.505/0.608, allocations: 99.43 MB / 372.1 MB, free: 6.375 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004904/0.6085, allocations: 92.31 kB / 372.2 MB, free: 6.324 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9444/1.553, allocations: 175.3 MB / 0.5346 GB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.553, allocations: 3.938 kB / 0.5346 GB, free: 14.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007989/1.554, allocations: 187.9 kB / 0.5348 GB, free: 14.09 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: 2059 * Number of variables: 2059 Notification: Performance of Generate backend data structure: time 0.03616/1.59, allocations: 8.238 MB / 0.5428 GB, free: 5.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/1.59, allocations: 8.031 kB / 0.5429 GB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009135/1.599, allocations: 1.303 MB / 0.5441 GB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/1.62, allocations: 5.833 MB / 0.5498 GB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001049/1.621, allocations: 0.5779 MB / 0.5504 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003884/1.625, allocations: 0.7692 MB / 0.5511 GB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04068/1.665, allocations: 10.51 MB / 0.5614 GB, free: 2.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004868/1.666, allocations: 12 kB / 0.5614 GB, free: 2.438 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00304/1.669, allocations: 328 kB / 0.5617 GB, free: 2.117 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005377/1.67, allocations: 347.7 kB / 0.5621 GB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3095/1.979, allocations: 8.499 MB / 0.5704 GB, free: 40.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08804/2.067, allocations: 32.72 MB / 0.6023 GB, free: 35.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/2.081, allocations: 8.188 MB / 0.6103 GB, free: 31.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004601/2.081, allocations: 43.19 kB / 0.6103 GB, free: 31.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.467e-05/2.081, allocations: 79.09 kB / 0.6104 GB, free: 31.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=351): time 7.083e-06/2.081, allocations: 0 / 0.6104 GB, free: 31.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=411): time 0.09559/2.177, allocations: 19.37 MB / 0.6293 GB, free: 24.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002161/2.177, allocations: 97.7 kB / 0.6294 GB, free: 24.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/2.189, allocations: 4.251 MB / 0.6336 GB, free: 23.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009236/2.19, allocations: 96.95 kB / 0.6337 GB, free: 23.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003479/2.193, allocations: 3.347 MB / 0.6369 GB, free: 20.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002055/2.196, allocations: 1.376 MB / 0.6383 GB, free: 19.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004607/2.196, allocations: 86.75 kB / 0.6384 GB, free: 19.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002827/2.196, allocations: 472.8 kB / 0.6388 GB, free: 19.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006051/2.202, allocations: 2.2 MB / 0.641 GB, free: 18.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007745/2.21, allocations: 3.096 MB / 0.644 GB, free: 16.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00785/2.218, allocations: 2.731 MB / 0.6467 GB, free: 15.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.673e-05/2.218, allocations: 7.062 kB / 0.6467 GB, free: 15.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.02304/2.241, allocations: 7.32 MB / 0.6538 GB, free: 12.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.209e-05/2.241, allocations: 21.55 kB / 0.6538 GB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.238e-05/2.242, allocations: 22.22 kB / 0.6539 GB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005786/2.247, allocations: 1.451 MB / 0.6553 GB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006567/2.254, allocations: 0.8423 MB / 0.6561 GB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03483/2.289, allocations: 20.49 MB / 0.6761 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005471/2.294, allocations: 181.4 kB / 0.6763 GB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008683/2.295, allocations: 155.8 kB / 0.6764 GB, free: 12.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (437): * Single equations (assignments): 429 * 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,100.0%) 27,(1,100.0%) 5,(1,100.0%) 1,(6,77.8%) 41,(1,100.0%) 1,(4,56.2%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008245/2.304, allocations: 2.661 MB / 0.679 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001667/2.305, allocations: 482.2 kB / 0.6795 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02178/2.327, allocations: 7.268 MB / 0.6866 GB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-05/2.327, allocations: 40 kB / 0.6866 GB, free: 3.535 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.927e-05/2.327, allocations: 24 kB / 0.6866 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.811e-05/2.327, allocations: 18.61 kB / 0.6867 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05551/2.383, allocations: 17.2 MB / 0.7035 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.709e-05/2.383, allocations: 8 kB / 0.7035 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00438/2.387, allocations: 484.7 kB / 0.7039 GB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007464/2.395, allocations: 1.76 MB / 0.7056 GB, free: 3.844 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008963/2.396, allocations: 99.27 kB / 0.7057 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3645/2.76, allocations: 28.66 MB / 0.7337 GB, free: 56.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/2.76, allocations: 13.81 kB / 0.7337 GB, free: 56.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02736/2.788, allocations: 10.28 MB / 0.7438 GB, free: 55.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004267/2.792, allocations: 1.077 MB / 0.7448 GB, free: 55.74 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002038/2.794, allocations: 92.58 kB / 0.7449 GB, free: 55.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005223/2.799, allocations: 184.2 kB / 0.7451 GB, free: 55.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001597/2.801, allocations: 363.2 kB / 0.7454 GB, free: 55.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004568/2.802, allocations: 112.5 kB / 0.7455 GB, free: 55.73 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007906/2.81, allocations: 2.926 MB / 0.7484 GB, free: 55.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.81, allocations: 0 / 0.7484 GB, free: 55.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009755/2.819, allocations: 1.557 MB / 0.7499 GB, free: 55.55 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcM.rotorCage.strayInductor.inductor[4].i,aimcM.rotorCage.strayInductor.inductor[5].i,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.stator.strayReluctance.Phi.re,aimc3.stator.strayReluctance.Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 246 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(6,77.8%) 40,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 8,(5,92.0%) 25,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001548/2.821, allocations: 467.1 kB / 0.7504 GB, free: 55.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01804/2.839, allocations: 6.921 MB / 0.7571 GB, free: 54.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/2.839, allocations: 0 / 0.7571 GB, free: 54.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01337/2.852, allocations: 5.026 MB / 0.762 GB, free: 53.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009561/2.862, allocations: 1.189 MB / 0.7632 GB, free: 53.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05797/2.92, allocations: 18.46 MB / 0.7812 GB, free: 45.29 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01558/2.936, allocations: 5.374 MB / 0.7865 GB, free: 43.43 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.009567/2.945, allocations: 0.9599 MB / 0.7874 GB, free: 43.34 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002658/2.948, allocations: 279.6 kB / 0.7877 GB, free: 43.33 MB / 394.7 MB Notification: Performance of SimCode: time 3.727e-06/2.948, allocations: 0 / 0.7877 GB, free: 43.33 MB / 394.7 MB Notification: Performance of Templates: time 0.51/3.458, allocations: 79.95 MB / 0.8658 GB, free: 62.24 MB / 394.7 MB