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.SMR_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.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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.672/1.672, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003608/0.0003609, allocations: 12 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09384/0.09423, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4136/0.5078, allocations: 99.41 MB / 372 MB, free: 6.531 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.5082, allocations: 92.2 kB / 372.1 MB, free: 6.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7597/1.268, allocations: 150.7 MB / 0.5106 GB, free: 39.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.268, allocations: 0 / 0.5106 GB, free: 39.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006616/1.269, allocations: 167.7 kB / 0.5108 GB, free: 39.7 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.02908/1.298, allocations: 6.725 MB / 0.5173 GB, free: 32.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.298, allocations: 12.02 kB / 0.5173 GB, free: 32.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007555/1.305, allocations: 1.061 MB / 0.5184 GB, free: 31.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01523/1.321, allocations: 4.712 MB / 0.523 GB, free: 27.01 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00063/1.321, allocations: 493.3 kB / 0.5234 GB, free: 26.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002498/1.324, allocations: 0.6521 MB / 0.5241 GB, free: 25.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02715/1.351, allocations: 8.576 MB / 0.5325 GB, free: 17.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003143/1.351, allocations: 15.89 kB / 0.5325 GB, free: 17.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001874/1.353, allocations: 280 kB / 0.5327 GB, free: 16.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003138/1.354, allocations: 289.3 kB / 0.533 GB, free: 16.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02364/1.377, allocations: 6.686 MB / 0.5395 GB, free: 9.801 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4164/1.794, allocations: 26.51 MB / 0.5654 GB, free: 33.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01014/1.804, allocations: 5.361 MB / 0.5707 GB, free: 30.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003565/1.804, allocations: 28.19 kB / 0.5707 GB, free: 30.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/1.804, allocations: 63.12 kB / 0.5708 GB, free: 30.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=254): time 5.47e-06/1.804, allocations: 3.25 kB / 0.5708 GB, free: 30.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=296): time 0.04928/1.854, allocations: 13.17 MB / 0.5836 GB, free: 28.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/1.854, allocations: 85.33 kB / 0.5837 GB, free: 28.47 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008489/1.862, allocations: 3.205 MB / 0.5868 GB, free: 28.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006326/1.863, allocations: 75.23 kB / 0.5869 GB, free: 28.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002792/1.866, allocations: 2.852 MB / 0.5897 GB, free: 27.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001478/1.867, allocations: 1.017 MB / 0.5907 GB, free: 26.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005758/1.868, allocations: 71.22 kB / 0.5907 GB, free: 26.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003189/1.868, allocations: 444.5 kB / 0.5912 GB, free: 26.06 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004461/1.873, allocations: 1.529 MB / 0.5927 GB, free: 26.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006111/1.879, allocations: 2.458 MB / 0.5951 GB, free: 25.01 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005371/1.884, allocations: 1.991 MB / 0.597 GB, free: 24.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-05/1.884, allocations: 7.938 kB / 0.597 GB, free: 24.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=447) (initialization): time 0.01569/1.9, allocations: 5.377 MB / 0.6023 GB, free: 24.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/1.9, allocations: 16.88 kB / 0.6023 GB, free: 24.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.263e-05/1.9, allocations: 31.69 kB / 0.6023 GB, free: 24.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/1.904, allocations: 0.9171 MB / 0.6032 GB, free: 24.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005637/1.91, allocations: 0.7393 MB / 0.6039 GB, free: 24.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02257/1.933, allocations: 14.78 MB / 0.6184 GB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004649/1.937, allocations: 153.3 kB / 0.6185 GB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000814/1.938, allocations: 144 kB / 0.6186 GB, free: 12.88 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.005823/1.944, allocations: 2.062 MB / 0.6207 GB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/1.945, allocations: 374 kB / 0.621 GB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01383/1.959, allocations: 4.772 MB / 0.6257 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-05/1.959, allocations: 34.66 kB / 0.6257 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-05/1.959, allocations: 13.59 kB / 0.6257 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-05/1.959, allocations: 15.05 kB / 0.6257 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03406/1.993, allocations: 11.71 MB / 0.6372 GB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.166e-05/1.994, allocations: 7.188 kB / 0.6372 GB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003662/1.997, allocations: 437.3 kB / 0.6376 GB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00436/2.002, allocations: 1.057 MB / 0.6386 GB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000605/2.002, allocations: 69.97 kB / 0.6387 GB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0321/2.034, allocations: 18.46 MB / 0.6567 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/2.034, allocations: 7.094 kB / 0.6567 GB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0259/2.06, allocations: 7.215 MB / 0.6638 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003309/2.064, allocations: 0.781 MB / 0.6645 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00157/2.065, allocations: 71.52 kB / 0.6646 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004097/2.069, allocations: 143 kB / 0.6647 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001043/2.071, allocations: 223.8 kB / 0.665 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004761/2.071, allocations: 83.75 kB / 0.665 GB, free: 14.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006532/2.078, allocations: 2.176 MB / 0.6672 GB, free: 12.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.42e-07/2.078, allocations: 0 / 0.6672 GB, free: 12.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007728/2.085, allocations: 1.198 MB / 0.6683 GB, free: 11.77 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.00144/2.087, allocations: 493.4 kB / 0.6688 GB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01575/2.103, allocations: 5.079 MB / 0.6738 GB, free: 6.672 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/2.103, allocations: 4 kB / 0.6738 GB, free: 6.668 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01044/2.113, allocations: 3.267 MB / 0.677 GB, free: 3.641 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00785/2.121, allocations: 0.939 MB / 0.6779 GB, free: 2.906 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04594/2.167, allocations: 14.5 MB / 0.692 GB, free: 5.566 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01537/2.183, allocations: 4.32 MB / 0.6962 GB, free: 2.32 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.008547/2.191, allocations: 0.7349 MB / 0.697 GB, free: 1.812 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002448/2.194, allocations: 238.4 kB / 0.6972 GB, free: 1.586 MB / 394.7 MB Notification: Performance of SimCode: time 1.914e-06/2.194, allocations: 0 / 0.6972 GB, free: 1.586 MB / 394.7 MB Notification: Performance of Templates: time 0.4855/2.679, allocations: 59.13 MB / 0.7549 GB, free: 73.38 MB / 394.7 MB