Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.865/1.865, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003526, allocations: 8 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08246/0.08283, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02926/0.1121, allocations: 19.46 MB / 327.8 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.1288, allocations: 6.846 MB / 334.7 MB, free: 6.629 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004666/0.1335, allocations: 111.6 kB / 334.8 MB, free: 6.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004543/0.1381, allocations: 1.15 MB / 335.9 MB, free: 5.363 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008592/0.1467, allocations: 2.025 MB / 338 MB, free: 3.332 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004508/0.1512, allocations: 0.9747 MB / 338.9 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.1621, allocations: 4.852 MB / 343.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007465/0.1696, allocations: 3.65 MB / 347.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004525/0.1742, allocations: 2.191 MB / 349.6 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005514/0.1798, allocations: 2.79 MB / 352.4 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.1815, allocations: 364 kB / 352.8 MB, free: 4.438 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003275/0.1848, allocations: 0.6792 MB / 353.4 MB, free: 3.758 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002659/0.1875, allocations: 1.441 MB / 354.9 MB, free: 2.312 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00284/0.1904, allocations: 1.276 MB / 356.2 MB, free: 1.027 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01487/0.2053, allocations: 9.189 MB / 365.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.743e-06/0.2053, allocations: 0 / 365.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.762e-06/0.2054, allocations: 0 / 365.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002245/0.2056, allocations: 0 / 365.4 MB, free: 7.812 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01877/0.2244, allocations: 6.262 MB / 371.6 MB, free: 1.469 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.2244, allocations: 8.031 kB / 371.6 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00819/0.2326, allocations: 1.23 MB / 372.8 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2325/0.4652, allocations: 3.553 MB / 376.4 MB, free: 52.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008594/0.4661, allocations: 424.2 kB / 376.8 MB, free: 51.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002768/0.4689, allocations: 0.5574 MB / 377.4 MB, free: 51.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03582/0.5048, allocations: 7.218 MB / 384.6 MB, free: 48.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003439/0.5052, allocations: 11.64 kB / 384.6 MB, free: 48.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001619/0.5068, allocations: 236.4 kB / 384.8 MB, free: 48.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006346/0.5075, allocations: 260.7 kB / 385.1 MB, free: 48.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03158/0.5391, allocations: 6.069 MB / 391.2 MB, free: 45.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04779/0.5869, allocations: 23.84 MB / 415 MB, free: 24.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009317/0.5963, allocations: 8.685 MB / 423.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01475/0.6111, allocations: 6.703 MB / 430.4 MB, free: 8.012 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.6111, allocations: 64.56 kB / 430.4 MB, free: 7.941 MB / 314.7 MB Notification: Performance of pre-optimization done (n=247): time 6.276e-06/0.6112, allocations: 0 / 430.4 MB, free: 7.941 MB / 314.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : smeeM.is[1] + smeeM.is[2] + smeeM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smeeM.is[1] ; smeeM.is[2] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; -smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=302): time 0.05455/0.6657, allocations: 16.48 MB / 446.9 MB, free: 7.207 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/0.6658, allocations: 85.75 kB / 447 MB, free: 7.109 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007645/0.6735, allocations: 3.418 MB / 450.4 MB, free: 3.703 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000474/0.674, allocations: 73.7 kB / 450.5 MB, free: 3.625 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002586/0.6766, allocations: 2.459 MB / 453 MB, free: 1.152 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001497/0.6781, allocations: 1.025 MB / 454 MB, free: 140 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003306/0.6785, allocations: 76 kB / 454.1 MB, free: 64 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000401/0.6789, allocations: 459 kB / 454.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004225/0.6831, allocations: 1.647 MB / 456.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00555/0.6887, allocations: 2.827 MB / 459 MB, free: 10.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00532/0.6941, allocations: 2.115 MB / 461.1 MB, free: 8.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.326e-05/0.6941, allocations: 8 kB / 461.1 MB, free: 8.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.01437/0.7085, allocations: 5.476 MB / 466.6 MB, free: 2.922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.926e-05/0.7086, allocations: 20 kB / 466.6 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-05/0.7087, allocations: 40.62 kB / 466.6 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00282/0.7115, allocations: 0.8165 MB / 467.5 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004589/0.7161, allocations: 0.8853 MB / 468.3 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01789/0.7341, allocations: 10.13 MB / 478.5 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004164/0.7383, allocations: 237.2 kB / 478.7 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006918/0.739, allocations: 164 kB / 478.9 MB, free: 6.227 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * 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 (428): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(3,100.0%) 12,(1,100.0%) 3,(3,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004442/0.7435, allocations: 1.63 MB / 480.5 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/0.7447, allocations: 395.2 kB / 480.9 MB, free: 4.195 MB / 362.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : smeeM.is[1] + smeeM.is[2] + smeeM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smeeM.is[2] ; smeeM.is[1] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; -smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.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.01246/0.7572, allocations: 4.854 MB / 485.7 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.209e-05/0.7573, allocations: 32 kB / 485.8 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.277e-05/0.7573, allocations: 8 kB / 485.8 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.545e-05/0.7574, allocations: 19.94 kB / 485.8 MB, free: 15.16 MB / 378.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : smeeM.is[1] + smeeM.is[2] + smeeM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smeeM.is[1] ; smeeM.is[2] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; -smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.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.02758/0.785, allocations: 10.58 MB / 496.4 MB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.12e-05/0.7851, allocations: 4 kB / 496.4 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003221/0.7883, allocations: 0.5424 MB / 496.9 MB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003193/0.7915, allocations: 0.8432 MB / 497.8 MB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005407/0.7921, allocations: 71.97 kB / 497.8 MB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02109/0.8132, allocations: 12.9 MB / 0.4988 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/0.8133, allocations: 7.938 kB / 0.4988 GB, free: 5.32 MB / 394.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : smeeM.is[1] + smeeM.is[2] + smeeM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smeeM.is[2] ; smeeM.is[1] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; -smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.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.01769/0.831, allocations: 7.115 MB / 0.5057 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002875/0.8339, allocations: 0.8125 MB / 0.5065 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/0.835, allocations: 63.98 kB / 0.5066 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003282/0.8383, allocations: 191.8 kB / 0.5068 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008361/0.8392, allocations: 221.9 kB / 0.507 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003737/0.8396, allocations: 88.11 kB / 0.507 GB, free: 12.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006045/0.8457, allocations: 2.309 MB / 0.5093 GB, free: 10.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.099e-06/0.8457, allocations: 0 / 0.5093 GB, free: 10.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006255/0.852, allocations: 1.15 MB / 0.5104 GB, free: 9.121 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 10 (smeeM.phiMechanical,smeeM.is[3],smeeM.stator.zeroInductor.i0,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (250): * Single equations (assignments): 241 * Array equations: 4 * 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: 5 {(5,72.0%) 30,(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009602/0.853, allocations: 251.8 kB / 0.5107 GB, free: 8.875 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01217/0.8651, allocations: 4.915 MB / 0.5155 GB, free: 3.859 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/0.8652, allocations: 4 kB / 0.5155 GB, free: 3.855 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007576/0.8728, allocations: 2.958 MB / 0.5184 GB, free: 0.832 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005297/0.8781, allocations: 0.8242 MB / 0.5192 GB, free: 8 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2459/1.124, allocations: 12.66 MB / 0.5315 GB, free: 130.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0061/1.13, allocations: 3.539 MB / 0.535 GB, free: 130 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/1.132, allocations: 289.9 kB / 0.5353 GB, free: 130 MB / 410.7 MB Notification: Performance of SimCode: time 1.921e-06/1.132, allocations: 0 / 0.5353 GB, free: 130 MB / 410.7 MB [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(sineVoltage.v)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(smeeE.is)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(smeeM.is)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(sineVoltage.v)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(smeeM.is)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(smeeE.is)[1] .