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.AIMC_DOL_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.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003915, allocations: 11.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.09933, allocations: 44.51 MB / 308.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4578/0.5572, allocations: 106.9 MB / 415.4 MB, free: 10.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.5575, allocations: 93.56 kB / 415.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9268/1.484, allocations: 182.8 MB / 0.5843 GB, free: 59.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.484, allocations: 2.734 kB / 0.5843 GB, free: 59.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007973/1.485, allocations: 196.8 kB / 0.5845 GB, free: 59.83 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03648/1.522, allocations: 8.354 MB / 0.5927 GB, free: 56.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/1.522, allocations: 7.781 kB / 0.5927 GB, free: 56.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004916/1.527, allocations: 1.112 MB / 0.5938 GB, free: 56.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0151/1.542, allocations: 1.832 MB / 0.5955 GB, free: 56.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02404/1.566, allocations: 6.993 MB / 0.6024 GB, free: 54.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008474/1.567, allocations: 0.5932 MB / 0.603 GB, free: 54.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004216/1.571, allocations: 0.7861 MB / 0.6037 GB, free: 54.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04844/1.619, allocations: 10.99 MB / 0.6145 GB, free: 49.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004542/1.62, allocations: 7.5 kB / 0.6145 GB, free: 49.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003353/1.623, allocations: 339.4 kB / 0.6148 GB, free: 49.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005741/1.624, allocations: 368.1 kB / 0.6151 GB, free: 49.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03625/1.66, allocations: 9.317 MB / 0.6242 GB, free: 45.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1054/1.766, allocations: 34.56 MB / 0.658 GB, free: 17.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3582/2.124, allocations: 19.87 MB / 0.6774 GB, free: 40.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02261/2.147, allocations: 7.983 MB / 0.6852 GB, free: 39.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.308e-05/2.147, allocations: 72.53 kB / 0.6853 GB, free: 39.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=343): time 7.184e-06/2.147, allocations: 5.797 kB / 0.6853 GB, free: 39.2 MB / 410.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=377): time 0.07173/2.218, allocations: 17.77 MB / 0.7026 GB, free: 36.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/2.219, allocations: 91.12 kB / 0.7027 GB, free: 36.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009747/2.228, allocations: 3.843 MB / 0.7065 GB, free: 36.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000837/2.229, allocations: 88.08 kB / 0.7065 GB, free: 36.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002725/2.232, allocations: 3.229 MB / 0.7097 GB, free: 34.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001849/2.234, allocations: 1.259 MB / 0.7109 GB, free: 34.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004531/2.234, allocations: 83 kB / 0.711 GB, free: 34.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002789/2.235, allocations: 482.1 kB / 0.7115 GB, free: 33.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005691/2.24, allocations: 2.018 MB / 0.7134 GB, free: 33.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006752/2.247, allocations: 3.025 MB / 0.7164 GB, free: 32.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006869/2.254, allocations: 2.526 MB / 0.7189 GB, free: 32.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.565e-05/2.254, allocations: 12.06 kB / 0.7189 GB, free: 32.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01842/2.273, allocations: 6.37 MB / 0.7251 GB, free: 31.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.22e-05/2.273, allocations: 19.34 kB / 0.7251 GB, free: 31.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.735e-05/2.273, allocations: 28.72 kB / 0.7251 GB, free: 31.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004753/2.277, allocations: 1.143 MB / 0.7262 GB, free: 31.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006643/2.284, allocations: 0.8403 MB / 0.7271 GB, free: 31.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02763/2.312, allocations: 18.42 MB / 0.7451 GB, free: 33.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005713/2.318, allocations: 192 kB / 0.7452 GB, free: 33.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009325/2.319, allocations: 165.9 kB / 0.7454 GB, free: 33.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 132 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (442): * Single equations (assignments): 433 * 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: 7 * 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: 7 {(3,100.0%) 31,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,68.8%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007317/2.326, allocations: 2.623 MB / 0.748 GB, free: 32.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001578/2.327, allocations: 475.2 kB / 0.7484 GB, free: 32.07 MB / 426.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.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.02156/2.349, allocations: 6.36 MB / 0.7546 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-05/2.349, allocations: 35.12 kB / 0.7547 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.138e-05/2.349, allocations: 21 kB / 0.7547 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.181e-05/2.349, allocations: 21 kB / 0.7547 GB, free: 29.34 MB / 426.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[1] ; aimc3.is[2] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03977/2.389, allocations: 14.28 MB / 0.7686 GB, free: 23.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-05/2.389, allocations: 10.83 kB / 0.7687 GB, free: 23.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004237/2.393, allocations: 478.2 kB / 0.7691 GB, free: 23.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006271/2.4, allocations: 1.517 MB / 0.7706 GB, free: 22.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007189/2.4, allocations: 100.4 kB / 0.7707 GB, free: 22.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04131/2.442, allocations: 25.81 MB / 0.7959 GB, free: 3.582 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/2.442, allocations: 7.875 kB / 0.7959 GB, free: 3.578 MB / 426.7 MB Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.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.02589/2.468, allocations: 9.562 MB / 0.8052 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00403/2.472, allocations: 1.027 MB / 0.8062 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00171/2.473, allocations: 95.66 kB / 0.8063 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005038/2.479, allocations: 197.3 kB / 0.8065 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001866/2.48, allocations: 349.9 kB / 0.8069 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006765/2.481, allocations: 111.5 kB / 0.807 GB, free: 12.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00942/2.491, allocations: 2.946 MB / 0.8098 GB, free: 10.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.91e-07/2.491, allocations: 0 / 0.8098 GB, free: 10.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009462/2.5, allocations: 1.555 MB / 0.8114 GB, free: 8.629 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.is[3],aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.stator.zeroInductor.i0,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 232 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(5,72.0%) 29,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 1,(6,72.2%) 46,(1,100.0%) 1,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Warning: The linear system: 1 : aimc3.is[1] + aimc3.is[2] + aimc3.is[3] = 0.0 2 : 3.0 * aimc3.stator.zeroInductor.i0 = aimc3.is[1] + aimc3.is[2] + aimc3.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ aimc3.is[2] ; aimc3.is[1] ] = [ -aimc3.is[3] ; aimc3.is[3] + (-3.0) * aimc3.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable aimc3.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.03707/2.537, allocations: 11.92 MB / 0.823 GB, free: 15.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01789/2.555, allocations: 6.424 MB / 0.8293 GB, free: 9.801 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/2.555, allocations: 0 / 0.8293 GB, free: 9.801 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01228/2.568, allocations: 4.407 MB / 0.8336 GB, free: 5.793 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009381/2.577, allocations: 1.175 MB / 0.8347 GB, free: 4.871 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4425/3.019, allocations: 66.67 MB / 0.8998 GB, free: 58.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01018/3.03, allocations: 5.184 MB / 0.9049 GB, free: 57.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007516/3.037, allocations: 3.119 MB / 0.9079 GB, free: 57.61 MB / 458.7 MB Notification: Performance of SimCode: time 1.212e-06/3.037, allocations: 0 / 0.9079 GB, free: 57.61 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.672/9.709, allocations: 476.3 MB / 1.373 GB, free: 104.7 MB / 474.7 MB