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.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.88/1.88, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003502, allocations: 8 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09048/0.09086, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5033/0.5942, allocations: 119.7 MB / 428.2 MB, free: 3.734 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.5946, allocations: 92.97 kB / 428.3 MB, free: 3.688 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7197/1.314, allocations: 115.3 MB / 0.5309 GB, free: 66.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.314, allocations: 0 / 0.5309 GB, free: 66.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005994/1.315, allocations: 133.8 kB / 0.531 GB, free: 66.54 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: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.02426/1.339, allocations: 5.338 MB / 0.5363 GB, free: 64.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/1.339, allocations: 10.55 kB / 0.5363 GB, free: 64.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003265/1.343, allocations: 0.7068 MB / 0.537 GB, free: 64.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007796/1.35, allocations: 0.9503 MB / 0.5379 GB, free: 64.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0177/1.368, allocations: 4.4 MB / 0.5422 GB, free: 63.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006121/1.369, allocations: 380.5 kB / 0.5425 GB, free: 63.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002464/1.371, allocations: 0.5029 MB / 0.543 GB, free: 63.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02338/1.395, allocations: 6.656 MB / 0.5495 GB, free: 63.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003148/1.395, allocations: 8.969 kB / 0.5495 GB, free: 63.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001915/1.397, allocations: 221.9 kB / 0.5498 GB, free: 63.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003073/1.397, allocations: 235 kB / 0.55 GB, free: 63.01 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/1.415, allocations: 5.384 MB / 0.5552 GB, free: 62.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07287/1.488, allocations: 21.04 MB / 0.5758 GB, free: 58.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/1.5, allocations: 8.536 MB / 0.5841 GB, free: 51.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/1.514, allocations: 5.043 MB / 0.589 GB, free: 49.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.543e-05/1.514, allocations: 67.17 kB / 0.5891 GB, free: 49.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=219): time 5.23e-06/1.514, allocations: 0 / 0.5891 GB, free: 49.03 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smrM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=270): time 0.0767/1.591, allocations: 14.38 MB / 0.6031 GB, free: 43.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/1.591, allocations: 79.03 kB / 0.6032 GB, free: 42.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01651/1.607, allocations: 2.5 MB / 0.6057 GB, free: 42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007038/1.608, allocations: 72.89 kB / 0.6057 GB, free: 41.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002125/1.61, allocations: 2.16 MB / 0.6078 GB, free: 40.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.01001/1.62, allocations: 0.9238 MB / 0.6087 GB, free: 39.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004925/1.621, allocations: 62.94 kB / 0.6088 GB, free: 39.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003153/1.621, allocations: 444.6 kB / 0.6092 GB, free: 39.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005932/1.627, allocations: 1.462 MB / 0.6107 GB, free: 38.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006475/1.633, allocations: 2.347 MB / 0.6129 GB, free: 36.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007203/1.641, allocations: 1.879 MB / 0.6148 GB, free: 36.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.604e-05/1.641, allocations: 7.906 kB / 0.6148 GB, free: 36.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.02176/1.663, allocations: 4.949 MB / 0.6196 GB, free: 34.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.942e-05/1.663, allocations: 17.69 kB / 0.6196 GB, free: 34.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.049e-05/1.663, allocations: 28.19 kB / 0.6197 GB, free: 34.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006548/1.669, allocations: 1.032 MB / 0.6207 GB, free: 33.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008418/1.678, allocations: 0.6972 MB / 0.6214 GB, free: 33.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03334/1.711, allocations: 12.66 MB / 0.6337 GB, free: 25.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007008/1.718, allocations: 188.3 kB / 0.6339 GB, free: 25.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009967/1.719, allocations: 139.3 kB / 0.634 GB, free: 25.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * 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 (349): * Single equations (assignments): 343 * 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 {(6,75.0%) 22,(1,100.0%) 1,(3,100.0%) 31,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00636/1.726, allocations: 1.548 MB / 0.6355 GB, free: 24.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/1.727, allocations: 331.9 kB / 0.6359 GB, free: 23.76 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smrM.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.0186/1.746, allocations: 4.647 MB / 0.6404 GB, free: 19.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.883e-05/1.746, allocations: 31.95 kB / 0.6404 GB, free: 19.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.074e-05/1.746, allocations: 8 kB / 0.6404 GB, free: 19.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-05/1.746, allocations: 17.73 kB / 0.6405 GB, free: 19.71 MB / 410.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smrM.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.024/1.77, allocations: 9.697 MB / 0.6499 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/1.77, allocations: 7.938 kB / 0.6499 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003719/1.774, allocations: 447 kB / 0.6504 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004371/1.778, allocations: 1.078 MB / 0.6514 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003897/1.779, allocations: 70.94 kB / 0.6515 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02616/1.805, allocations: 17.27 MB / 0.6683 GB, free: 9.668 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/1.805, allocations: 7.938 kB / 0.6684 GB, free: 9.66 MB / 426.7 MB Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smrM.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.01903/1.824, allocations: 6.873 MB / 0.6751 GB, free: 3.285 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002832/1.827, allocations: 0.7286 MB / 0.6758 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/1.828, allocations: 58.25 kB / 0.6758 GB, free: 2.562 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003528/1.831, allocations: 161.4 kB / 0.676 GB, free: 2.445 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007317/1.832, allocations: 206 kB / 0.6762 GB, free: 2.312 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002808/1.832, allocations: 75.64 kB / 0.6763 GB, free: 2.246 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004633/1.837, allocations: 1.905 MB / 0.6781 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.837, allocations: 0 / 0.6781 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009019/1.846, allocations: 1.277 MB / 0.6794 GB, free: 0 / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.is[3],smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.zeroInductor.i0,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * 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 (208): * Single equations (assignments): 202 * 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 {(6,72.2%) 22,(5,68.0%) 29,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 2 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] [ 1.0 , 1.0 ; -1.0 , -1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ -smrM.is[3] ; smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ] might be structurally or numerically singular for variable smrM.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.3137/2.16, allocations: 8.498 MB / 0.6877 GB, free: 71.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01277/2.173, allocations: 4.711 MB / 0.6923 GB, free: 70.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/2.173, allocations: 1 kB / 0.6923 GB, free: 70.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008454/2.181, allocations: 2.967 MB / 0.6952 GB, free: 69.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006368/2.188, allocations: 0.7674 MB / 0.6959 GB, free: 69.92 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08125/2.269, allocations: 48.52 MB / 0.7433 GB, free: 40.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005441/2.274, allocations: 3.398 MB / 0.7466 GB, free: 39.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004598/2.279, allocations: 1.999 MB / 0.7486 GB, free: 39.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/2.279, allocations: 0 / 0.7486 GB, free: 39.44 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.911/7.19, allocations: 229.9 MB / 0.9731 GB, free: 26.23 MB / 442.7 MB