Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.705/1.705, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005/0.0004848, allocations: 12 kB / 233.3 MB, free: 2.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.08303, allocations: 38.76 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02687/0.11, allocations: 15.77 MB / 287.8 MB, free: 12.28 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01414/0.1241, allocations: 5.352 MB / 293.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003377/0.1276, allocations: 107.4 kB / 293.3 MB, free: 6.809 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004625/0.1322, allocations: 0.9908 MB / 294.2 MB, free: 5.812 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007369/0.1396, allocations: 1.542 MB / 295.8 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004289/0.144, allocations: 0.8198 MB / 296.6 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2302/0.3742, allocations: 3.976 MB / 300.6 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007748/0.3821, allocations: 3.594 MB / 304.2 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004513/0.3866, allocations: 1.892 MB / 306.1 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005936/0.3926, allocations: 2.3 MB / 308.4 MB, free: 9.398 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001837/0.3945, allocations: 318.7 kB / 308.7 MB, free: 9.398 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003159/0.3977, allocations: 0.4893 MB / 309.2 MB, free: 9.398 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002551/0.4002, allocations: 1.31 MB / 310.5 MB, free: 9.387 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00266/0.4029, allocations: 1.101 MB / 311.6 MB, free: 9.355 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.414, allocations: 8.09 MB / 319.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4141, allocations: 0 / 319.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.4141, allocations: 0 / 319.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002943/0.4144, allocations: 5.594 kB / 319.7 MB, free: 5.598 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.02049/0.4349, allocations: 5.375 MB / 325.1 MB, free: 2.637 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.435, allocations: 8.938 kB / 325.1 MB, free: 2.637 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002702/0.4377, allocations: 0.6733 MB / 325.7 MB, free: 2.449 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005411/0.4431, allocations: 0.8091 MB / 326.5 MB, free: 2.074 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00927/0.4524, allocations: 3.032 MB / 329.6 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004775/0.453, allocations: 367.4 kB / 329.9 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001954/0.4549, allocations: 0.4885 MB / 330.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0215/0.4765, allocations: 6.432 MB / 336.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000219/0.4767, allocations: 15.17 kB / 336.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001103/0.4779, allocations: 203.5 kB / 337.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003564/0.4782, allocations: 233.3 kB / 337.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01885/0.4971, allocations: 5.32 MB / 342.6 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05778/0.5549, allocations: 19.98 MB / 362.6 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008877/0.5638, allocations: 4.005 MB / 366.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006498/0.5646, allocations: 146.5 kB / 366.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.381e-05/0.5646, allocations: 56.5 kB / 366.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=212): time 4.879e-06/0.5647, allocations: 0 / 366.8 MB, free: 13.16 MB / 298.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] 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 matching and sorting (n=257): time 0.05477/0.6194, allocations: 13.11 MB / 379.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.001e-05/0.6196, allocations: 81.42 kB / 380 MB, free: 15.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00916/0.6287, allocations: 2.701 MB / 382.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006901/0.6295, allocations: 69.7 kB / 382.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006964/0.6365, allocations: 2.094 MB / 384.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001777/0.6383, allocations: 0.8788 MB / 385.7 MB, free: 9.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004244/0.6387, allocations: 64 kB / 385.8 MB, free: 9.832 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004086/0.6392, allocations: 433.3 kB / 386.2 MB, free: 9.398 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01029/0.6495, allocations: 1.411 MB / 387.6 MB, free: 7.984 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01525/0.6648, allocations: 2.261 MB / 389.9 MB, free: 5.355 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006793/0.6716, allocations: 1.819 MB / 391.7 MB, free: 3.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.388e-05/0.6717, allocations: 8 kB / 391.7 MB, free: 3.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.03176/0.7035, allocations: 4.759 MB / 396.5 MB, free: 14.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.23e-05/0.7036, allocations: 16.47 kB / 396.5 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.449e-05/0.7037, allocations: 28 kB / 396.5 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005133/0.7088, allocations: 0.9211 MB / 397.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005794/0.7146, allocations: 0.6708 MB / 398.1 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02485/0.7395, allocations: 13.32 MB / 411.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/0.7435, allocations: 175.8 kB / 411.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003753/0.7439, allocations: 128 kB / 411.7 MB, free: 14.74 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * 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 (337): * Single equations (assignments): 330 * 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: 5 * 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: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(6,75.0%) 34,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004668/0.7486, allocations: 1.52 MB / 413.2 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001005/0.7496, allocations: 324 kB / 413.6 MB, free: 12.89 MB / 346.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] 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 wrapFunctionCalls (simulation): time 0.01258/0.7622, allocations: 4.4 MB / 418 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.722e-05/0.7623, allocations: 24 kB / 418 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.059e-05/0.7623, allocations: 12 kB / 418 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.124e-05/0.7623, allocations: 11.95 kB / 418 MB, free: 8.301 MB / 346.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] 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 removeSimpleEquations (simulation): time 0.02634/0.7887, allocations: 9.721 MB / 427.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/0.7887, allocations: 8 kB / 427.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003468/0.7922, allocations: 427.3 kB / 428.1 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003998/0.7962, allocations: 0.9389 MB / 429.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003223/0.7966, allocations: 67.97 kB / 429.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2545/1.051, allocations: 16.12 MB / 445.3 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/1.051, allocations: 9.656 kB / 445.3 MB, free: 115.3 MB / 362.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] 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.01609/1.067, allocations: 6.336 MB / 451.6 MB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00243/1.07, allocations: 0.6859 MB / 452.3 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008517/1.071, allocations: 64.8 kB / 452.4 MB, free: 114 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002737/1.073, allocations: 142.8 kB / 452.5 MB, free: 114 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006492/1.074, allocations: 191.7 kB / 452.7 MB, free: 114 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/1.074, allocations: 75.8 kB / 452.8 MB, free: 114 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005291/1.08, allocations: 1.821 MB / 454.6 MB, free: 113.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.232e-06/1.08, allocations: 0 / 454.6 MB, free: 113.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005613/1.085, allocations: 0.9643 MB / 455.6 MB, free: 113.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 13 (vfController.x,smrM.is[3],smrM.inertiaRotor.w,smrM.stator.zeroInductor.i0,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,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 (206): * Single equations (assignments): 199 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(3,100.0%) 11,(1,100.0%) 3,(8,50.0%) 32,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] 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.01679/1.102, allocations: 7.002 MB / 462.6 MB, free: 109.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01104/1.113, allocations: 4.613 MB / 467.2 MB, free: 107.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.113, allocations: 6.312 kB / 467.2 MB, free: 107.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007465/1.121, allocations: 2.925 MB / 470.1 MB, free: 106 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0061/1.127, allocations: 0.7889 MB / 470.9 MB, free: 105.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08139/1.208, allocations: 29.36 MB / 0.4885 GB, free: 77.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004945/1.213, allocations: 3.347 MB / 0.4918 GB, free: 74.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004078/1.217, allocations: 1.897 MB / 0.4936 GB, free: 72.62 MB / 362.7 MB Notification: Performance of SimCode: time 1.352e-06/1.217, allocations: 2.062 kB / 0.4936 GB, free: 72.62 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.345/6.562, allocations: 245.1 MB / 0.733 GB, free: 94.32 MB / 362.7 MB