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.AIMC_DOL.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.AIMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimcE.i_0_s|aimcE.idq_rr.1.|aimcE.idq_rr.2.|aimcE.idq_sr.1.|aimcE.idq_sr.2.|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|aimcM.stator.zeroInductor.i0|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003497, allocations: 12 kB / 264.6 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09439/0.09476, allocations: 44.5 MB / 309.1 MB, free: 348 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4712/0.566, allocations: 117.2 MB / 426.2 MB, free: 5.969 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.5663, allocations: 95.69 kB / 426.3 MB, free: 5.918 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8127/1.379, allocations: 117.5 MB / 0.5311 GB, free: 66.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.866e-06/1.379, allocations: 3.406 kB / 0.5311 GB, free: 66.06 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006808/1.38, allocations: 132.4 kB / 0.5312 GB, free: 66.05 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02434/1.404, allocations: 5.43 MB / 0.5365 GB, free: 64.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/1.404, allocations: 9.891 kB / 0.5365 GB, free: 64.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008356/1.413, allocations: 0.9968 MB / 0.5375 GB, free: 63.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01874/1.431, allocations: 4.638 MB / 0.542 GB, free: 63.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005917/1.432, allocations: 384.2 kB / 0.5424 GB, free: 63.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002371/1.434, allocations: 0.5043 MB / 0.5429 GB, free: 63.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02284/1.457, allocations: 6.837 MB / 0.5495 GB, free: 62.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002936/1.458, allocations: 15.28 kB / 0.5496 GB, free: 62.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/1.459, allocations: 227.1 kB / 0.5498 GB, free: 62.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002909/1.46, allocations: 225.1 kB / 0.55 GB, free: 62.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/1.478, allocations: 5.597 MB / 0.5555 GB, free: 62.49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05548/1.534, allocations: 21.45 MB / 0.5764 GB, free: 58.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01211/1.546, allocations: 8.746 MB / 0.5849 GB, free: 51.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01471/1.561, allocations: 5.22 MB / 0.59 GB, free: 48.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/1.561, allocations: 59 kB / 0.5901 GB, free: 48.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=230): time 5.35e-06/1.561, allocations: 0 / 0.5901 GB, free: 48.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=249): time 0.03963/1.601, allocations: 11.59 MB / 0.6014 GB, free: 43.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/1.601, allocations: 75.31 kB / 0.6015 GB, free: 43.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006982/1.608, allocations: 2.926 MB / 0.6043 GB, free: 41.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006115/1.608, allocations: 68.95 kB / 0.6044 GB, free: 41.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002075/1.61, allocations: 2.291 MB / 0.6066 GB, free: 40.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001183/1.612, allocations: 0.8462 MB / 0.6075 GB, free: 39.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/1.612, allocations: 58.09 kB / 0.6075 GB, free: 39.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002104/1.612, allocations: 425.7 kB / 0.6079 GB, free: 39.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003875/1.616, allocations: 1.386 MB / 0.6093 GB, free: 38.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004602/1.621, allocations: 2.133 MB / 0.6114 GB, free: 37.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004774/1.626, allocations: 1.725 MB / 0.6131 GB, free: 36.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.798e-05/1.626, allocations: 7.156 kB / 0.6131 GB, free: 36.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01436/1.64, allocations: 4.717 MB / 0.6177 GB, free: 34.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-05/1.64, allocations: 14.16 kB / 0.6177 GB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-05/1.64, allocations: 31.27 kB / 0.6177 GB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005109/1.645, allocations: 0.7564 MB / 0.6185 GB, free: 34.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007686/1.653, allocations: 0.6598 MB / 0.6191 GB, free: 34.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02537/1.679, allocations: 13.58 MB / 0.6324 GB, free: 22.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006236/1.685, allocations: 154.5 kB / 0.6325 GB, free: 22.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009468/1.686, allocations: 119.5 kB / 0.6326 GB, free: 22.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 7 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007025/1.693, allocations: 1.611 MB / 0.6342 GB, free: 21.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001868/1.695, allocations: 322.5 kB / 0.6345 GB, free: 21.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02084/1.716, allocations: 4.318 MB / 0.6387 GB, free: 19.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.233e-05/1.716, allocations: 24.94 kB / 0.6387 GB, free: 19.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.878e-05/1.716, allocations: 13.92 kB / 0.6388 GB, free: 19.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.683e-05/1.716, allocations: 11.3 kB / 0.6388 GB, free: 19.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03685/1.753, allocations: 9.312 MB / 0.6479 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.34e-05/1.753, allocations: 7.953 kB / 0.6479 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003679/1.757, allocations: 406.5 kB / 0.6483 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004209/1.761, allocations: 0.9323 MB / 0.6492 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006519/1.762, allocations: 63.12 kB / 0.6492 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0237/1.785, allocations: 16.8 MB / 0.6656 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/1.785, allocations: 4 kB / 0.6656 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/1.804, allocations: 6.237 MB / 0.6717 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003111/1.807, allocations: 0.715 MB / 0.6724 GB, free: 4.727 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001521/1.809, allocations: 59.84 kB / 0.6725 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003842/1.813, allocations: 148 kB / 0.6726 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009989/1.814, allocations: 199 kB / 0.6728 GB, free: 4.441 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000431/1.814, allocations: 75.69 kB / 0.6729 GB, free: 4.375 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00594/1.82, allocations: 1.996 MB / 0.6748 GB, free: 2.703 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.82, allocations: 0 / 0.6748 GB, free: 2.703 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006604/1.827, allocations: 1.023 MB / 0.6758 GB, free: 1.684 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001462/1.828, allocations: 452.1 kB / 0.6763 GB, free: 1.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.3505/2.179, allocations: 5.1 MB / 0.6812 GB, free: 72.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/2.179, allocations: 0 / 0.6812 GB, free: 72.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008279/2.187, allocations: 3.112 MB / 0.6843 GB, free: 71.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00739/2.195, allocations: 0.8355 MB / 0.6851 GB, free: 71.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03084/2.225, allocations: 11.95 MB / 0.6968 GB, free: 66.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007923/2.233, allocations: 3.532 MB / 0.7002 GB, free: 65.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005266/2.239, allocations: 0.7739 MB / 0.701 GB, free: 65.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001494/2.24, allocations: 209.8 kB / 0.7012 GB, free: 65.37 MB / 426.7 MB Notification: Performance of SimCode: time 1.944e-06/2.24, allocations: 0 / 0.7012 GB, free: 65.37 MB / 426.7 MB Notification: Performance of Templates: time 0.1447/2.385, allocations: 50.88 MB / 0.7509 GB, free: 62.42 MB / 426.7 MB