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.SMPM_Inverter_MultiPhase.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.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x|vfController3.x",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.9 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003433, allocations: 16 kB / 264.6 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.09011, allocations: 44.5 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.03507/0.1252, allocations: 20.47 MB / 329.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01763/0.1429, allocations: 6.769 MB / 336.3 MB, free: 5.027 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004311/0.1473, allocations: 135.4 kB / 336.4 MB, free: 4.895 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005712/0.153, allocations: 1.27 MB / 337.7 MB, free: 3.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009506/0.1626, allocations: 2.053 MB / 339.8 MB, free: 1.559 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005231/0.1678, allocations: 1.006 MB / 340.8 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0145/0.1824, allocations: 5.937 MB / 346.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01043/0.1928, allocations: 5.073 MB / 351.8 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005703/0.1986, allocations: 2.643 MB / 354.4 MB, free: 2.816 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007435/0.2061, allocations: 3.26 MB / 357.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002029/0.2081, allocations: 456 kB / 358.1 MB, free: 15.1 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003661/0.2118, allocations: 0.6131 MB / 358.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00296/0.2148, allocations: 1.624 MB / 360.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003272/0.2181, allocations: 1.595 MB / 362 MB, free: 11.25 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2844/0.5026, allocations: 11.95 MB / 373.9 MB, free: 20.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5026, allocations: 4.438 kB / 373.9 MB, free: 20.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.5027, allocations: 0 / 373.9 MB, free: 20.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004186/0.5031, allocations: 0 / 373.9 MB, free: 20.71 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1927 * Number of variables: 1927 Notification: Performance of Generate backend data structure: time 0.03156/0.5347, allocations: 7.759 MB / 381.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.5347, allocations: 8.812 kB / 381.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01499/0.5497, allocations: 1.743 MB / 383.4 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.5638, allocations: 4.538 MB / 388 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007076/0.5645, allocations: 0.5334 MB / 388.5 MB, free: 16.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00269/0.5672, allocations: 0.7065 MB / 389.2 MB, free: 16.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0293/0.5965, allocations: 9.641 MB / 398.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002689/0.5969, allocations: 12.34 kB / 398.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/0.5985, allocations: 295 kB / 399.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004016/0.5989, allocations: 350.5 kB / 399.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0257/0.6246, allocations: 8.219 MB / 407.7 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07683/0.7015, allocations: 30.42 MB / 438.1 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02601/0.7275, allocations: 16 MB / 454.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02028/0.7479, allocations: 6.787 MB / 460.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.136e-05/0.748, allocations: 72.34 kB / 461 MB, free: 7.812 MB / 362.7 MB Notification: Performance of pre-optimization done (n=300): time 6.262e-06/0.748, allocations: 0 / 461 MB, free: 7.812 MB / 362.7 MB Warning: The linear system: 1 : smpm3.is[1] + smpm3.is[2] + smpm3.is[3] = 0.0 2 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpm3.is[2] ; smpm3.is[1] ] = [ -smpm3.is[3] ; smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpm3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=337): time 0.06759/0.8156, allocations: 14.12 MB / 475.1 MB, free: 9.488 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.8158, allocations: 86.06 kB / 475.2 MB, free: 9.391 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/0.8267, allocations: 3.438 MB / 478.6 MB, free: 5.969 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007564/0.8275, allocations: 85.7 kB / 478.7 MB, free: 5.879 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004521/0.8321, allocations: 3.146 MB / 481.9 MB, free: 2.711 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002251/0.8344, allocations: 1.148 MB / 483 MB, free: 1.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005109/0.8349, allocations: 84 kB / 483.1 MB, free: 1.488 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004774/0.8354, allocations: 466.6 kB / 483.5 MB, free: 1.023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005352/0.8408, allocations: 1.663 MB / 485.2 MB, free: 15.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006107/0.8469, allocations: 2.791 MB / 488 MB, free: 12.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006402/0.8533, allocations: 2.174 MB / 490.2 MB, free: 9.918 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.72e-05/0.8534, allocations: 8 kB / 490.2 MB, free: 9.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.01689/0.8703, allocations: 5.631 MB / 495.8 MB, free: 4.457 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.783e-05/0.8704, allocations: 20 kB / 495.8 MB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.949e-05/0.8705, allocations: 36 kB / 495.9 MB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003135/0.8737, allocations: 0.734 MB / 496.6 MB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006832/0.8805, allocations: 0.8902 MB / 497.5 MB, free: 2.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01956/0.9001, allocations: 10.76 MB / 0.4963 GB, free: 7.586 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/0.9049, allocations: 187.7 kB / 0.4965 GB, free: 7.402 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006413/0.9056, allocations: 168 kB / 0.4967 GB, free: 7.238 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 156 * 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 (460): * Single equations (assignments): 454 * 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: 4 * 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: 4 {(3,100.0%) 32,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005983/0.9116, allocations: 2.168 MB / 0.4988 GB, free: 5.113 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00128/0.9129, allocations: 407 kB / 0.4992 GB, free: 4.711 MB / 410.7 MB Warning: The linear system: 1 : smpm3.is[1] + smpm3.is[2] + smpm3.is[3] = 0.0 2 : 3.0 * smpm3.stator.zeroInductor.i0 = smpm3.is[1] + smpm3.is[2] + smpm3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smpm3.is[1] ; smpm3.is[2] ] = [ -smpm3.is[3] ; smpm3.is[3] + (-3.0) * smpm3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smpm3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01604/0.929, allocations: 5.136 MB / 0.5042 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001/0.9291, allocations: 15.94 kB / 0.5042 GB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.9291, allocations: 4 kB / 0.5042 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00334/0.9325, allocations: 0.8435 MB / 0.505 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001668/0.9342, allocations: 71.95 kB / 0.5051 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00412/0.9383, allocations: 151.9 kB / 0.5053 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009918/0.9394, allocations: 278.2 kB / 0.5055 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01973/0.9591, allocations: 5.173 MB / 0.5106 GB, free: 8.996 MB / 426.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01714/0.9763, allocations: 6.128 MB / 0.5166 GB, free: 2.809 MB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004894/0.9813, allocations: 1.801 MB / 0.5183 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.518/1.499, allocations: 2.315 MB / 0.5206 GB, free: 148.5 MB / 426.8 MB Notification: Performance of Backend: time 1.012e-06/1.499, allocations: 5 kB / 0.5206 GB, free: 148.5 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01128/1.511, allocations: 3.779 MB / 0.5243 GB, free: 147.3 MB / 426.8 MB Notification: Performance of SimCode: time 0.03586/1.547, allocations: 15.98 MB / 0.5399 GB, free: 138.3 MB / 426.8 MB Notification: Performance of Templates: time 0.1689/1.716, allocations: 64.08 MB / 0.6025 GB, free: 84.28 MB / 426.8 MB