Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 194.9 MB / 211.1 MB, free: 7.598 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003571, allocations: 12 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3007, allocations: 44.5 MB / 308.6 MB, free: 12.57 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5003/0.8011, allocations: 119.7 MB / 428.2 MB, free: 51.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003062/0.8014, allocations: 89.38 kB / 428.3 MB, free: 51.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4709/1.272, allocations: 115.4 MB / 0.531 GB, free: 4.488 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.272, allocations: 0 / 0.531 GB, free: 4.488 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006125/1.273, allocations: 127.8 kB / 0.5311 GB, free: 4.363 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: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.02496/1.298, allocations: 5.354 MB / 0.5363 GB, free: 14.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/1.298, allocations: 8.031 kB / 0.5363 GB, free: 14.92 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003552/1.302, allocations: 0.7 MB / 0.537 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008472/1.31, allocations: 0.9573 MB / 0.5379 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01923/1.329, allocations: 4.398 MB / 0.5422 GB, free: 8.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006517/1.33, allocations: 382.2 kB / 0.5426 GB, free: 8.395 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002474/1.333, allocations: 0.4998 MB / 0.5431 GB, free: 7.895 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02603/1.359, allocations: 6.646 MB / 0.5496 GB, free: 1.047 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003564/1.359, allocations: 11.98 kB / 0.5496 GB, free: 1.035 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002007/1.361, allocations: 220 kB / 0.5498 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003884/1.362, allocations: 238.1 kB / 0.55 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02099/1.383, allocations: 5.389 MB / 0.5553 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3654/1.748, allocations: 21.03 MB / 0.5758 GB, free: 53.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01231/1.76, allocations: 8.543 MB / 0.5842 GB, free: 47.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/1.776, allocations: 5.033 MB / 0.5891 GB, free: 46.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/1.776, allocations: 58.75 kB / 0.5891 GB, free: 46.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=219): time 6.222e-06/1.776, allocations: 0 / 0.5891 GB, free: 46.43 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.07126/1.847, allocations: 14.38 MB / 0.6032 GB, free: 44.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/1.847, allocations: 77.47 kB / 0.6032 GB, free: 44.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01015/1.857, allocations: 2.501 MB / 0.6057 GB, free: 43.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000829/1.858, allocations: 65.52 kB / 0.6057 GB, free: 43.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003362/1.862, allocations: 2.316 MB / 0.608 GB, free: 43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001855/1.864, allocations: 0.9218 MB / 0.6089 GB, free: 42.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005213/1.864, allocations: 66.12 kB / 0.609 GB, free: 42.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003322/1.865, allocations: 436.5 kB / 0.6094 GB, free: 42.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006361/1.871, allocations: 1.475 MB / 0.6108 GB, free: 42.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0073/1.878, allocations: 2.335 MB / 0.6131 GB, free: 41.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007249/1.886, allocations: 1.878 MB / 0.6149 GB, free: 41.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-05/1.886, allocations: 14.39 kB / 0.615 GB, free: 41.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.02299/1.909, allocations: 5.146 MB / 0.62 GB, free: 40.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.141e-05/1.909, allocations: 17.94 kB / 0.62 GB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.136e-05/1.909, allocations: 30.09 kB / 0.62 GB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006763/1.916, allocations: 1.034 MB / 0.621 GB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00764/1.924, allocations: 0.7061 MB / 0.6217 GB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02717/1.951, allocations: 12.66 MB / 0.6341 GB, free: 35.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004691/1.956, allocations: 187.2 kB / 0.6343 GB, free: 35.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008364/1.956, allocations: 138.8 kB / 0.6344 GB, free: 35.22 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.004679/1.961, allocations: 1.544 MB / 0.6359 GB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/1.962, allocations: 329.8 kB / 0.6362 GB, free: 34.27 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.01699/1.979, allocations: 4.654 MB / 0.6408 GB, free: 32.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.801e-05/1.979, allocations: 27.84 kB / 0.6408 GB, free: 32.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.989e-05/1.979, allocations: 13.94 kB / 0.6408 GB, free: 32.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.677e-05/1.98, allocations: 14.34 kB / 0.6408 GB, free: 32.24 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.03808/2.018, allocations: 9.688 MB / 0.6503 GB, free: 28.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-05/2.018, allocations: 3.938 kB / 0.6503 GB, free: 28.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0052/2.023, allocations: 451.3 kB / 0.6507 GB, free: 28.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00653/2.03, allocations: 1.083 MB / 0.6518 GB, free: 27.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007472/2.03, allocations: 66.58 kB / 0.6518 GB, free: 27.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03237/2.063, allocations: 17.26 MB / 0.6687 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/2.063, allocations: 6.141 kB / 0.6687 GB, free: 14.74 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 postOpt symbolicJacobian (simulation): time 0.01823/2.081, allocations: 6.872 MB / 0.6754 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002781/2.084, allocations: 0.7212 MB / 0.6761 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001254/2.085, allocations: 63.45 kB / 0.6762 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004023/2.089, allocations: 156.7 kB / 0.6763 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/2.09, allocations: 197.2 kB / 0.6765 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003913/2.091, allocations: 85.23 kB / 0.6766 GB, free: 10.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005215/2.096, allocations: 1.896 MB / 0.6784 GB, free: 10.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.096, allocations: 0 / 0.6784 GB, free: 10.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006503/2.103, allocations: 1.082 MB / 0.6795 GB, free: 9.93 MB / 410.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.02424/2.127, allocations: 8.499 MB / 0.6878 GB, free: 3.699 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01827/2.145, allocations: 4.715 MB / 0.6924 GB, free: 15.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/2.145, allocations: 5.875 kB / 0.6924 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01354/2.159, allocations: 2.972 MB / 0.6953 GB, free: 12.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009779/2.169, allocations: 0.772 MB / 0.6961 GB, free: 12.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4974/2.666, allocations: 48.56 MB / 0.7435 GB, free: 78.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/2.677, allocations: 3.449 MB / 0.7468 GB, free: 78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006996/2.684, allocations: 0.7736 MB / 0.7476 GB, free: 77.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004767/2.689, allocations: 1.973 MB / 0.7495 GB, free: 77.97 MB / 442.7 MB Notification: Performance of SimCode: time 1.733e-06/2.689, allocations: 0 / 0.7495 GB, free: 77.97 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2606/2.949, allocations: 89.04 MB / 0.8365 GB, free: 46.48 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002768/2.95, allocations: 219.1 kB / 0.8367 GB, free: 46.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.296/9.246, allocations: 9.312 kB / 0.8367 GB, free: 46.24 MB / 442.7 MB