Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|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.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.648/1.648, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 8 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06927/0.06965, allocations: 38.76 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.03392/0.1036, allocations: 22.31 MB / 294.2 MB, free: 5.801 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1983/0.302, allocations: 7.222 MB / 301.5 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005559/0.3076, allocations: 158.5 kB / 301.6 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005092/0.3127, allocations: 1.353 MB / 303 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00885/0.3216, allocations: 2.109 MB / 305.1 MB, free: 9.254 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005141/0.3268, allocations: 1.117 MB / 306.2 MB, free: 9.227 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01378/0.3406, allocations: 6.72 MB / 312.9 MB, free: 9.203 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01181/0.3524, allocations: 6.167 MB / 319.1 MB, free: 7.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006291/0.3587, allocations: 3.067 MB / 322.2 MB, free: 7.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007011/0.3658, allocations: 3.73 MB / 325.9 MB, free: 6.258 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002281/0.3681, allocations: 0.5321 MB / 326.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004199/0.3723, allocations: 0.6955 MB / 327.1 MB, free: 5.555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002806/0.3752, allocations: 1.888 MB / 329 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003479/0.3787, allocations: 1.82 MB / 330.8 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01992/0.3987, allocations: 13.81 MB / 344.6 MB, free: 6.535 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.3987, allocations: 0 / 344.6 MB, free: 6.535 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.099e-06/0.3987, allocations: 0 / 344.6 MB, free: 6.535 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0003442/0.3991, allocations: 0 / 344.6 MB, free: 6.535 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.02838/0.4275, allocations: 8.896 MB / 353.5 MB, free: 13.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.4275, allocations: 10.55 kB / 353.5 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009286/0.4368, allocations: 1.539 MB / 355.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/0.4514, allocations: 5.056 MB / 360.1 MB, free: 6.914 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008591/0.4523, allocations: 0.5942 MB / 360.7 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002508/0.4548, allocations: 0.8083 MB / 361.5 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03159/0.4864, allocations: 10.6 MB / 372.1 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002892/0.4868, allocations: 7.891 kB / 372.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001763/0.4885, allocations: 336 kB / 372.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004525/0.489, allocations: 332.3 kB / 372.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/0.5151, allocations: 8.598 MB / 381.4 MB, free: 1.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1265/0.6416, allocations: 33.21 MB / 414.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01546/0.6572, allocations: 6.036 MB / 420.6 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002914/0.6575, allocations: 34.3 kB / 420.7 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.805e-05/0.6576, allocations: 68.88 kB / 420.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=295): time 8.334e-06/0.6576, allocations: 3.938 kB / 420.7 MB, free: 8.84 MB / 346.7 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[1] ; smee3.is[2] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=358): time 0.05314/0.7108, allocations: 16.45 MB / 437.2 MB, free: 8.109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.058e-05/0.7109, allocations: 90.2 kB / 437.3 MB, free: 8.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01073/0.7216, allocations: 4.338 MB / 441.6 MB, free: 3.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005916/0.7223, allocations: 81.7 kB / 441.7 MB, free: 3.574 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003764/0.7261, allocations: 3.365 MB / 445.1 MB, free: 180 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.4315/1.158, allocations: 1.212 MB / 446.3 MB, free: 110.9 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000453/1.158, allocations: 85.06 kB / 446.4 MB, free: 110.9 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0003601/1.158, allocations: 478.7 kB / 446.8 MB, free: 110.6 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005669/1.164, allocations: 1.947 MB / 448.8 MB, free: 110.6 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006391/1.171, allocations: 3.192 MB / 452 MB, free: 108.7 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006255/1.177, allocations: 2.504 MB / 454.5 MB, free: 107.6 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.731e-05/1.177, allocations: 13.84 kB / 454.5 MB, free: 107.6 MB / 362.8 MB Notification: Performance of matching and sorting (n=547) (initialization): time 0.01687/1.194, allocations: 6.315 MB / 460.8 MB, free: 105.1 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.335e-05/1.194, allocations: 19.72 kB / 460.8 MB, free: 105.1 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.535e-05/1.194, allocations: 40.97 kB / 460.9 MB, free: 105.1 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003691/1.198, allocations: 1.062 MB / 461.9 MB, free: 104.7 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005073/1.203, allocations: 0.9489 MB / 462.9 MB, free: 104.6 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02091/1.224, allocations: 12.83 MB / 475.7 MB, free: 96.11 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/1.229, allocations: 237.2 kB / 475.9 MB, free: 96.03 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008645/1.23, allocations: 184.8 kB / 476.1 MB, free: 95.99 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * 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 (464): * Single equations (assignments): 457 * Array equations: 2 * 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 {(5,76.0%) 36,(4,93.8%) 17,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006033/1.236, allocations: 2.479 MB / 478.6 MB, free: 94.7 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/1.237, allocations: 481.6 kB / 479.1 MB, free: 94.54 MB / 362.8 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.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.01398/1.251, allocations: 5.748 MB / 484.8 MB, free: 91.97 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.559e-05/1.251, allocations: 39.09 kB / 484.8 MB, free: 91.97 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.215e-05/1.251, allocations: 23.3 kB / 484.9 MB, free: 91.97 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.095e-05/1.251, allocations: 18.98 kB / 484.9 MB, free: 91.97 MB / 362.8 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.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.03324/1.284, allocations: 14.41 MB / 499.3 MB, free: 79.7 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.753e-05/1.284, allocations: 8.969 kB / 499.3 MB, free: 79.69 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/1.288, allocations: 0.5656 MB / 499.9 MB, free: 79.12 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00358/1.291, allocations: 1.188 MB / 0.4893 GB, free: 77.93 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005626/1.292, allocations: 87.97 kB / 0.4894 GB, free: 77.84 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02311/1.315, allocations: 15.79 MB / 0.5048 GB, free: 61.54 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.898e-06/1.315, allocations: 8 kB / 0.5048 GB, free: 61.53 MB / 362.8 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.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.0172/1.332, allocations: 8.405 MB / 0.513 GB, free: 52.88 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002915/1.335, allocations: 0.9874 MB / 0.514 GB, free: 51.87 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001198/1.336, allocations: 77.08 kB / 0.5141 GB, free: 51.79 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003446/1.34, allocations: 215.7 kB / 0.5143 GB, free: 51.58 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008512/1.341, allocations: 286.1 kB / 0.5146 GB, free: 51.3 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003079/1.341, allocations: 104.2 kB / 0.5147 GB, free: 51.2 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.006413/1.348, allocations: 2.951 MB / 0.5175 GB, free: 48.25 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.351e-06/1.348, allocations: 11.11 kB / 0.5175 GB, free: 48.24 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.006586/1.354, allocations: 1.427 MB / 0.5189 GB, free: 46.82 MB / 362.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.is[3],smee3.stator.zeroInductor.i0,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im) * 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 (260): * Single equations (assignments): 254 * Array equations: 2 * 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 {(4,93.8%) 17,(4,93.8%) 33,(8,50.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007792/1.355, allocations: 217.5 kB / 0.5191 GB, free: 46.6 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.01231/1.367, allocations: 5.836 MB / 0.5248 GB, free: 40.67 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/1.367, allocations: 0 / 0.5248 GB, free: 40.67 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008636/1.376, allocations: 3.683 MB / 0.5284 GB, free: 36.93 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005835/1.382, allocations: 1.07 MB / 0.5295 GB, free: 35.87 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03173/1.414, allocations: 17.42 MB / 0.5465 GB, free: 18.3 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007429/1.421, allocations: 5.016 MB / 0.5514 GB, free: 13.26 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001632/1.423, allocations: 315.4 kB / 0.5517 GB, free: 12.95 MB / 362.8 MB Notification: Performance of SimCode: time 2.955e-06/1.423, allocations: 0 / 0.5517 GB, free: 12.95 MB / 362.8 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(sineVoltage3.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(smee3.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(sineVoltage3.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(smee3.is)[1] .