Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.665/1.665, allocations: 171.1 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003798, allocations: 11.98 kB / 233.8 MB, free: 0.9648 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08936, allocations: 38.76 MB / 272.6 MB, free: 10.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3946/0.484, allocations: 99.41 MB / 372 MB, free: 15.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/0.4844, allocations: 95.94 kB / 372.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7657/1.25, allocations: 150.7 MB / 0.5105 GB, free: 28.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.085e-06/1.25, allocations: 0 / 0.5105 GB, free: 28.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006117/1.251, allocations: 171.8 kB / 0.5107 GB, free: 28.38 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.02874/1.28, allocations: 6.71 MB / 0.5172 GB, free: 21.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/1.28, allocations: 16.03 kB / 0.5173 GB, free: 21.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007055/1.287, allocations: 1.061 MB / 0.5183 GB, free: 20.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01484/1.302, allocations: 4.716 MB / 0.5229 GB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006339/1.302, allocations: 0.4895 MB / 0.5234 GB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002603/1.305, allocations: 0.6482 MB / 0.524 GB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02892/1.334, allocations: 8.63 MB / 0.5324 GB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003688/1.334, allocations: 3.938 kB / 0.5324 GB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002246/1.337, allocations: 280 kB / 0.5327 GB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003289/1.337, allocations: 293.3 kB / 0.533 GB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2896/1.627, allocations: 6.68 MB / 0.5395 GB, free: 34.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07588/1.703, allocations: 26.51 MB / 0.5654 GB, free: 29.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0102/1.713, allocations: 5.359 MB / 0.5706 GB, free: 27.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000366/1.713, allocations: 40.78 kB / 0.5707 GB, free: 27.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.879e-05/1.713, allocations: 62.95 kB / 0.5707 GB, free: 26.99 MB / 346.7 MB Notification: Performance of pre-optimization done (n=254): time 6.071e-06/1.713, allocations: 0 / 0.5707 GB, free: 26.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=296): time 0.0514/1.765, allocations: 13.17 MB / 0.5836 GB, free: 24.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/1.765, allocations: 82.14 kB / 0.5837 GB, free: 24.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008126/1.773, allocations: 3.209 MB / 0.5868 GB, free: 24.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006865/1.774, allocations: 77.7 kB / 0.5869 GB, free: 24.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00223/1.776, allocations: 2.664 MB / 0.5895 GB, free: 22.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001608/1.778, allocations: 1.016 MB / 0.5905 GB, free: 21.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003845/1.778, allocations: 69.94 kB / 0.5905 GB, free: 21.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002641/1.778, allocations: 447.4 kB / 0.591 GB, free: 20.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004539/1.783, allocations: 1.526 MB / 0.5925 GB, free: 20.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005485/1.788, allocations: 2.474 MB / 0.5949 GB, free: 18.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005541/1.794, allocations: 1.993 MB / 0.5968 GB, free: 17.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-05/1.794, allocations: 10.72 kB / 0.5968 GB, free: 17.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=447) (initialization): time 0.01534/1.809, allocations: 5.154 MB / 0.6019 GB, free: 15.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.181e-05/1.81, allocations: 22.11 kB / 0.6019 GB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.565e-05/1.81, allocations: 29.81 kB / 0.6019 GB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004008/1.814, allocations: 0.9149 MB / 0.6028 GB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005561/1.819, allocations: 0.7388 MB / 0.6035 GB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02225/1.842, allocations: 14.78 MB / 0.618 GB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004749/1.846, allocations: 147.8 kB / 0.6181 GB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008346/1.847, allocations: 144 kB / 0.6182 GB, free: 3.59 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.006446/1.854, allocations: 2.058 MB / 0.6203 GB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001272/1.855, allocations: 368.8 kB / 0.6206 GB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/1.87, allocations: 4.785 MB / 0.6253 GB, free: 152 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.781e-05/1.87, allocations: 29.75 kB / 0.6253 GB, free: 152 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.869e-05/1.87, allocations: 13.66 kB / 0.6253 GB, free: 152 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.341e-05/1.87, allocations: 14.48 kB / 0.6253 GB, free: 152 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03982/1.91, allocations: 11.85 MB / 0.6369 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.27e-05/1.91, allocations: 9.953 kB / 0.6369 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003728/1.914, allocations: 435.7 kB / 0.6373 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004635/1.919, allocations: 1.06 MB / 0.6384 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006408/1.92, allocations: 69.81 kB / 0.6384 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03387/1.953, allocations: 18.47 MB / 0.6565 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/1.953, allocations: 6.156 kB / 0.6565 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02032/1.974, allocations: 6.865 MB / 0.6632 GB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003172/1.977, allocations: 0.7775 MB / 0.6639 GB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001479/1.979, allocations: 67.94 kB / 0.664 GB, free: 3.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003986/1.983, allocations: 140.7 kB / 0.6641 GB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001109/1.984, allocations: 229.6 kB / 0.6643 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000419/1.984, allocations: 89.8 kB / 0.6644 GB, free: 3.609 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006406/1.991, allocations: 2.173 MB / 0.6666 GB, free: 1.789 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.31e-07/1.991, allocations: 0 / 0.6666 GB, free: 1.789 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007529/1.998, allocations: 1.203 MB / 0.6677 GB, free: 0.5898 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.001453/2, allocations: 491.7 kB / 0.6682 GB, free: 180 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02114/2.021, allocations: 5.405 MB / 0.6735 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/2.021, allocations: 1.812 kB / 0.6735 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01027/2.031, allocations: 3.27 MB / 0.6767 GB, free: 9.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007894/2.039, allocations: 0.9401 MB / 0.6776 GB, free: 8.609 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3361/2.375, allocations: 14.89 MB / 0.6921 GB, free: 68.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01064/2.386, allocations: 4.22 MB / 0.6963 GB, free: 68.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001766/2.388, allocations: 256.3 kB / 0.6965 GB, free: 68.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.914e-06/2.388, allocations: 2.219 kB / 0.6965 GB, free: 68.2 MB / 394.7 MB Notification: Performance of Templates: time 1.061/3.449, allocations: 311.6 MB / 1.001 GB, free: 101.1 MB / 426.7 MB