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_Inverter.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_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003379, allocations: 11.98 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09114, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.526, allocations: 103.2 MB / 411.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.5264, allocations: 96.11 kB / 411.8 MB, free: 11.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2902/0.8166, allocations: 79.4 MB / 491.2 MB, free: 12.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.8167, allocations: 0 / 491.2 MB, free: 12.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003405/0.817, allocations: 71.94 kB / 491.3 MB, free: 12.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01546/0.8325, allocations: 3.462 MB / 494.7 MB, free: 8.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.8326, allocations: 8.031 kB / 494.7 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002087/0.8347, allocations: 455 kB / 495.2 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0062/0.8409, allocations: 0.7222 MB / 495.9 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01222/0.8532, allocations: 3.288 MB / 499.2 MB, free: 4.391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003351/0.8535, allocations: 238.2 kB / 499.4 MB, free: 4.156 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/0.8548, allocations: 307.9 kB / 499.7 MB, free: 3.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01388/0.8687, allocations: 4.151 MB / 0.4921 GB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.8689, allocations: 3.984 kB / 0.4921 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006756/0.8696, allocations: 139.8 kB / 0.4922 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002218/0.8698, allocations: 146.3 kB / 0.4923 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01206/0.8819, allocations: 3.406 MB / 0.4957 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03512/0.9171, allocations: 13.25 MB / 0.5086 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01106/0.9282, allocations: 6.911 MB / 0.5153 GB, free: 6.508 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008395/0.9366, allocations: 3.226 MB / 0.5185 GB, free: 3.195 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.968e-05/0.9367, allocations: 51.88 kB / 0.5185 GB, free: 3.137 MB / 410.7 MB Notification: Performance of pre-optimization done (n=131): time 3.537e-06/0.9367, allocations: 0 / 0.5185 GB, free: 3.137 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[1] ; aimc.is[2] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=161): time 0.2928/1.23, allocations: 7.341 MB / 0.5257 GB, free: 87.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/1.23, allocations: 71.69 kB / 0.5258 GB, free: 87.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/1.233, allocations: 1.469 MB / 0.5272 GB, free: 87.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003556/1.233, allocations: 52.42 kB / 0.5273 GB, free: 87.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/1.235, allocations: 1.34 MB / 0.5286 GB, free: 87.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007475/1.235, allocations: 0.5458 MB / 0.5291 GB, free: 86.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/1.236, allocations: 36.66 kB / 0.5291 GB, free: 86.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/1.236, allocations: 385.7 kB / 0.5295 GB, free: 86.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/1.238, allocations: 0.8093 MB / 0.5303 GB, free: 86.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002591/1.241, allocations: 1.262 MB / 0.5315 GB, free: 85.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/1.243, allocations: 1.047 MB / 0.5326 GB, free: 85.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.585e-05/1.243, allocations: 3.875 kB / 0.5326 GB, free: 85.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00755/1.251, allocations: 2.763 MB / 0.5353 GB, free: 85.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/1.251, allocations: 11.19 kB / 0.5353 GB, free: 85.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.054e-05/1.251, allocations: 16.81 kB / 0.5353 GB, free: 85.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002483/1.254, allocations: 0.583 MB / 0.5359 GB, free: 85.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002887/1.256, allocations: 378.2 kB / 0.5362 GB, free: 85.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/1.271, allocations: 8.768 MB / 0.5448 GB, free: 81.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/1.274, allocations: 77.69 kB / 0.5449 GB, free: 81.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002389/1.274, allocations: 83.23 kB / 0.5449 GB, free: 81.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (186): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(4,93.8%) 30,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002729/1.277, allocations: 1.029 MB / 0.5459 GB, free: 81.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005818/1.277, allocations: 188.1 kB / 0.5461 GB, free: 81.49 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.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.007044/1.284, allocations: 2.694 MB / 0.5487 GB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/1.284, allocations: 15.5 kB / 0.5488 GB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.192e-05/1.284, allocations: 7.719 kB / 0.5488 GB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.756e-05/1.284, allocations: 9.859 kB / 0.5488 GB, free: 81.14 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.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.015/1.299, allocations: 5.825 MB / 0.5545 GB, free: 80.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/1.299, allocations: 0 / 0.5545 GB, free: 80.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.302, allocations: 247.5 kB / 0.5547 GB, free: 80.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002293/1.304, allocations: 0.5726 MB / 0.5553 GB, free: 80.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002368/1.304, allocations: 43.16 kB / 0.5553 GB, free: 80.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.014/1.318, allocations: 9.993 MB / 0.5651 GB, free: 74.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.318, allocations: 6.75 kB / 0.5651 GB, free: 74.06 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.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.009483/1.328, allocations: 3.912 MB / 0.5689 GB, free: 72.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/1.329, allocations: 463.8 kB / 0.5693 GB, free: 71.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005576/1.33, allocations: 35.41 kB / 0.5694 GB, free: 71.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001918/1.332, allocations: 89.66 kB / 0.5694 GB, free: 71.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004814/1.332, allocations: 113 kB / 0.5696 GB, free: 71.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/1.333, allocations: 51.47 kB / 0.5696 GB, free: 71.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002627/1.335, allocations: 1.134 MB / 0.5707 GB, free: 71.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.944e-06/1.335, allocations: 3.031 kB / 0.5707 GB, free: 71.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003644/1.339, allocations: 0.6417 MB / 0.5713 GB, free: 71.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.is[3],aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,vfController.x,loadInertia.w) * 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 (117): * Single equations (assignments): 113 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,72.0%) 29,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.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.01028/1.349, allocations: 5.109 MB / 0.5763 GB, free: 68.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006823/1.356, allocations: 2.731 MB / 0.579 GB, free: 66.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/1.356, allocations: 0 / 0.579 GB, free: 66.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004234/1.36, allocations: 1.744 MB / 0.5807 GB, free: 65.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/1.364, allocations: 478.8 kB / 0.5812 GB, free: 65.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04484/1.409, allocations: 25.83 MB / 0.6064 GB, free: 47.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002653/1.412, allocations: 2.34 MB / 0.6087 GB, free: 46.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/1.414, allocations: 1.133 MB / 0.6098 GB, free: 45.22 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/1.414, allocations: 4 kB / 0.6098 GB, free: 45.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.171/5.585, allocations: 115.7 MB / 0.7228 GB, free: 81.35 MB / 410.7 MB