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.SMEE_Rectifier.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.SMEE_Rectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003572, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09336, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.472/0.5654, allocations: 125.3 MB / 433.9 MB, free: 14.55 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003945/0.5658, allocations: 88.02 kB / 433.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.377/0.9429, allocations: 95.35 MB / 0.5169 GB, free: 6.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.943, allocations: 0 / 0.5169 GB, free: 6.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004347/0.9434, allocations: 91.92 kB / 0.517 GB, free: 6.16 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01848/0.9619, allocations: 4.163 MB / 0.521 GB, free: 1.926 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.962, allocations: 19.95 kB / 0.5211 GB, free: 1.906 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002231/0.9642, allocations: 0.4983 MB / 0.5216 GB, free: 1.398 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007823/0.9721, allocations: 0.9005 MB / 0.5224 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2886/1.261, allocations: 3.605 MB / 0.526 GB, free: 70.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004917/1.261, allocations: 275.5 kB / 0.5262 GB, free: 70.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/1.263, allocations: 366.7 kB / 0.5266 GB, free: 70.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/1.278, allocations: 4.605 MB / 0.5311 GB, free: 69.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001494/1.279, allocations: 5.125 kB / 0.5311 GB, free: 69.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007966/1.279, allocations: 152.1 kB / 0.5312 GB, free: 69.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001782/1.28, allocations: 157.5 kB / 0.5314 GB, free: 69.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/1.293, allocations: 3.78 MB / 0.5351 GB, free: 69.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04132/1.334, allocations: 15.73 MB / 0.5504 GB, free: 66.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/1.345, allocations: 7.904 MB / 0.5581 GB, free: 60.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/1.357, allocations: 4.34 MB / 0.5624 GB, free: 59.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/1.357, allocations: 53.41 kB / 0.5624 GB, free: 59.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=188): time 5.15e-06/1.357, allocations: 0 / 0.5624 GB, free: 59.89 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=221): time 0.02962/1.387, allocations: 9.058 MB / 0.5713 GB, free: 57.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/1.387, allocations: 179.7 kB / 0.5714 GB, free: 56.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004418/1.391, allocations: 1.906 MB / 0.5733 GB, free: 56.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004657/1.392, allocations: 65.11 kB / 0.5734 GB, free: 56.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/1.393, allocations: 1.549 MB / 0.5749 GB, free: 54.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000969/1.394, allocations: 0.7498 MB / 0.5756 GB, free: 54.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/1.394, allocations: 48.97 kB / 0.5757 GB, free: 54.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001794/1.394, allocations: 410.6 kB / 0.576 GB, free: 53.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002647/1.397, allocations: 1.013 MB / 0.577 GB, free: 53.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003153/1.4, allocations: 1.63 MB / 0.5786 GB, free: 52.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/1.403, allocations: 1.278 MB / 0.5799 GB, free: 51.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.26e-05/1.403, allocations: 6.5 kB / 0.5799 GB, free: 51.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=322) (initialization): time 0.009598/1.413, allocations: 3.512 MB / 0.5833 GB, free: 50.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00145/1.415, allocations: 6.889 MB / 0.59 GB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.441e-05/1.415, allocations: 17.75 kB / 0.5901 GB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003201/1.418, allocations: 0.7971 MB / 0.5908 GB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003615/1.422, allocations: 0.4916 MB / 0.5913 GB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0174/1.439, allocations: 11.32 MB / 0.6024 GB, free: 34.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003167/1.442, allocations: 109.7 kB / 0.6025 GB, free: 34.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000485/1.443, allocations: 103.7 kB / 0.6026 GB, free: 34.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/1.443, allocations: 3.75 kB / 0.6026 GB, free: 34.69 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009068/1.452, allocations: 3.396 MB / 0.6059 GB, free: 33.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.102e-05/1.452, allocations: 21 kB / 0.6059 GB, free: 33.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/1.455, allocations: 0.7825 MB / 0.6067 GB, free: 33.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003545/1.458, allocations: 491.6 kB / 0.6071 GB, free: 33.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01711/1.475, allocations: 11.37 MB / 0.6183 GB, free: 24.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/1.477, allocations: 95.39 kB / 0.6183 GB, free: 24.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003091/1.478, allocations: 100.7 kB / 0.6184 GB, free: 24.85 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 252 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,80.0%) 32} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.003228/1.481, allocations: 1.181 MB / 0.6196 GB, free: 24.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000799/1.482, allocations: 264.2 kB / 0.6198 GB, free: 24.03 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.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.008459/1.49, allocations: 3.271 MB / 0.623 GB, free: 22.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/1.49, allocations: 25.84 kB / 0.6231 GB, free: 22.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/1.49, allocations: 7.5 kB / 0.6231 GB, free: 22.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.484e-05/1.49, allocations: 10.88 kB / 0.6231 GB, free: 22.48 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.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.01736/1.508, allocations: 6.932 MB / 0.6299 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-05/1.508, allocations: 3.125 kB / 0.6299 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002856/1.511, allocations: 322.6 kB / 0.6302 GB, free: 19.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003047/1.514, allocations: 0.7948 MB / 0.6309 GB, free: 19.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000404/1.514, allocations: 54.78 kB / 0.631 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01808/1.532, allocations: 12.71 MB / 0.6434 GB, free: 9.316 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.532, allocations: 2.375 kB / 0.6434 GB, free: 9.316 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.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.01136/1.544, allocations: 4.85 MB / 0.6481 GB, free: 6.805 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/1.546, allocations: 0.565 MB / 0.6487 GB, free: 6.277 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008094/1.547, allocations: 51.75 kB / 0.6487 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002496/1.549, allocations: 97.91 kB / 0.6488 GB, free: 6.152 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006055/1.55, allocations: 158.9 kB / 0.649 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001856/1.55, allocations: 59.56 kB / 0.649 GB, free: 6.004 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003245/1.553, allocations: 1.458 MB / 0.6505 GB, free: 4.762 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.553, allocations: 0 / 0.6505 GB, free: 4.762 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007578/1.561, allocations: 1.432 MB / 0.6519 GB, free: 3.348 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.is[3],smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (160): * Single equations (assignments): 155 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,61.1%) 31,(1,100.0%) 1} * Non-linear torn systems: 3 {2 7,2 7,2 7} Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : smee.is[1] + smee.is[2] + smee.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee.is[2] ; smee.is[1] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; -smee.is[3] ] might be structurally or numerically singular for variable smee.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.01339/1.574, allocations: 6.186 MB / 0.6579 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01578/1.59, allocations: 5.944 MB / 0.6637 GB, free: 8.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.59, allocations: 0 / 0.6637 GB, free: 8.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005764/1.596, allocations: 2.215 MB / 0.6659 GB, free: 6.109 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0051/1.601, allocations: 0.6375 MB / 0.6665 GB, free: 5.617 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3138/1.915, allocations: 22.36 MB / 0.6883 GB, free: 61.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004055/1.919, allocations: 2.593 MB / 0.6909 GB, free: 60.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00326/1.922, allocations: 1.417 MB / 0.6922 GB, free: 60.57 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/1.922, allocations: 3.281 kB / 0.6922 GB, free: 60.57 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.64/6.562, allocations: 153.1 MB / 0.8418 GB, free: 88.63 MB / 442.7 MB