Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.89/1.89, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004952/0.0004953, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09857, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5481, allocations: 111.4 MB / 419.9 MB, free: 8.988 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.5484, allocations: 93.5 kB / 420 MB, free: 8.973 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9123/1.461, allocations: 169.1 MB / 0.5752 GB, free: 59.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.836e-06/1.461, allocations: 0 / 0.5752 GB, free: 59.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007116/1.462, allocations: 181.2 kB / 0.5754 GB, free: 59.56 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: 1927 * Number of variables: 1927 Notification: Performance of Generate backend data structure: time 0.03167/1.493, allocations: 7.272 MB / 0.5825 GB, free: 56.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/1.493, allocations: 7.156 kB / 0.5825 GB, free: 56.83 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004347/1.498, allocations: 0.9979 MB / 0.5835 GB, free: 56.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01337/1.511, allocations: 1.599 MB / 0.5851 GB, free: 56.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02111/1.532, allocations: 5.95 MB / 0.5909 GB, free: 55.35 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007673/1.533, allocations: 0.535 MB / 0.5914 GB, free: 55.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003514/1.537, allocations: 0.7007 MB / 0.5921 GB, free: 55.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0322/1.569, allocations: 9.511 MB / 0.6014 GB, free: 53.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004073/1.569, allocations: 11.62 kB / 0.6014 GB, free: 53.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002532/1.572, allocations: 308.9 kB / 0.6017 GB, free: 53.01 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004215/1.572, allocations: 336.9 kB / 0.602 GB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02595/1.598, allocations: 7.761 MB / 0.6096 GB, free: 49.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07534/1.674, allocations: 30.61 MB / 0.6395 GB, free: 32.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0223/1.696, allocations: 16.12 MB / 0.6552 GB, free: 15.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01895/1.715, allocations: 7.047 MB / 0.6621 GB, free: 9.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.595e-05/1.715, allocations: 72.94 kB / 0.6621 GB, free: 9.348 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 6.132e-06/1.715, allocations: 0 / 0.6621 GB, free: 9.348 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[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=346): time 0.3599/2.075, allocations: 14.33 MB / 0.6761 GB, free: 57.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/2.075, allocations: 86.72 kB / 0.6762 GB, free: 57.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008931/2.084, allocations: 3.186 MB / 0.6793 GB, free: 56.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007151/2.085, allocations: 82.73 kB / 0.6794 GB, free: 56.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00266/2.087, allocations: 2.915 MB / 0.6823 GB, free: 55.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001749/2.089, allocations: 1.172 MB / 0.6834 GB, free: 55.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004089/2.09, allocations: 82.75 kB / 0.6835 GB, free: 55.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002667/2.09, allocations: 470.5 kB / 0.6839 GB, free: 54.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004619/2.095, allocations: 1.694 MB / 0.6856 GB, free: 54.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006827/2.101, allocations: 2.781 MB / 0.6883 GB, free: 53.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006999/2.108, allocations: 2.213 MB / 0.6905 GB, free: 53.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/2.109, allocations: 14.91 kB / 0.6905 GB, free: 53.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.01699/2.126, allocations: 5.445 MB / 0.6958 GB, free: 53.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.299e-05/2.126, allocations: 19.84 kB / 0.6958 GB, free: 53.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.979e-05/2.126, allocations: 38.39 kB / 0.6959 GB, free: 53.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003128/2.129, allocations: 0.7671 MB / 0.6966 GB, free: 53.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007065/2.136, allocations: 0.9024 MB / 0.6975 GB, free: 53.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/2.152, allocations: 10.84 MB / 0.7081 GB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005441/2.158, allocations: 191.5 kB / 0.7083 GB, free: 47.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008252/2.159, allocations: 172.1 kB / 0.7084 GB, free: 47.78 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (463): * Single equations (assignments): 457 * 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 {(5,92.0%) 31,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006743/2.166, allocations: 2.163 MB / 0.7105 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00138/2.167, allocations: 416.9 kB / 0.7109 GB, free: 47.43 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[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 postOpt wrapFunctionCalls (simulation): time 0.01513/2.182, allocations: 5.246 MB / 0.7161 GB, free: 46.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-05/2.182, allocations: 32.94 kB / 0.7161 GB, free: 46.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/2.182, allocations: 13.31 kB / 0.7161 GB, free: 46.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.804e-05/2.182, allocations: 14.86 kB / 0.7161 GB, free: 46.95 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[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 postOpt removeSimpleEquations (simulation): time 0.03319/2.215, allocations: 12.32 MB / 0.7281 GB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.258e-05/2.216, allocations: 3.375 kB / 0.7281 GB, free: 42.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004721/2.22, allocations: 0.5387 MB / 0.7287 GB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004053/2.224, allocations: 1.009 MB / 0.7297 GB, free: 42.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006551/2.225, allocations: 89.91 kB / 0.7297 GB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02453/2.25, allocations: 17.9 MB / 0.7472 GB, free: 28.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/2.25, allocations: 7.875 kB / 0.7472 GB, free: 28.49 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[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 postOpt symbolicJacobian (simulation): time 0.0189/2.269, allocations: 7.991 MB / 0.755 GB, free: 24.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003226/2.272, allocations: 0.8859 MB / 0.7559 GB, free: 23.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001466/2.273, allocations: 77.27 kB / 0.756 GB, free: 23.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004435/2.278, allocations: 163 kB / 0.7561 GB, free: 23.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009744/2.279, allocations: 255.3 kB / 0.7564 GB, free: 23.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003288/2.279, allocations: 100.3 kB / 0.7565 GB, free: 23.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005876/2.285, allocations: 2.421 MB / 0.7588 GB, free: 22.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.372e-06/2.285, allocations: 0 / 0.7588 GB, free: 22.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007637/2.293, allocations: 1.354 MB / 0.7602 GB, free: 22.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.is[3],smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.stator.zeroInductor.i0,loadInertiaM.phi,loadInertia3.phi,vfController.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 (268): * Single equations (assignments): 262 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 33,(5,68.0%) 29,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 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 Backend phase and start with SimCode phase: time 0.0209/2.314, allocations: 10.06 MB / 0.77 GB, free: 16.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01275/2.326, allocations: 5.174 MB / 0.775 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.326, allocations: 0.5 kB / 0.775 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008282/2.335, allocations: 3.299 MB / 0.7783 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008012/2.343, allocations: 1.025 MB / 0.7793 GB, free: 12.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1231/2.466, allocations: 62.19 MB / 0.84 GB, free: 2.094 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3671/2.833, allocations: 4.926 MB / 0.8448 GB, free: 98.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009843/2.843, allocations: 2.758 MB / 0.8475 GB, free: 98.27 MB / 458.7 MB Notification: Performance of SimCode: time 2.264e-06/2.843, allocations: 0 / 0.8475 GB, free: 98.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.745/8.588, allocations: 324 MB / 1.164 GB, free: 110.2 MB / 474.7 MB