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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,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.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003618, allocations: 12 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07993/0.08031, allocations: 44.52 MB / 308.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.07601/0.1564, allocations: 23.84 MB / 332.2 MB, free: 9.102 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.04571/0.2022, allocations: 7.85 MB / 340.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005818/0.208, allocations: 159.4 kB / 340.2 MB, free: 1.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005526/0.2136, allocations: 1.406 MB / 341.6 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01051/0.2241, allocations: 2.388 MB / 344 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005733/0.2299, allocations: 1.162 MB / 345.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01553/0.2454, allocations: 7.047 MB / 352.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01345/0.2589, allocations: 6.115 MB / 358.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00684/0.2658, allocations: 3.195 MB / 361.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007914/0.2738, allocations: 3.961 MB / 365.5 MB, free: 7.684 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002478/0.2763, allocations: 0.5468 MB / 366 MB, free: 7.137 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004029/0.2804, allocations: 0.8237 MB / 366.9 MB, free: 6.312 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003764/0.2842, allocations: 1.939 MB / 368.8 MB, free: 4.367 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003988/0.2882, allocations: 1.892 MB / 370.7 MB, free: 2.465 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2642/0.5524, allocations: 14.29 MB / 385 MB, free: 19.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.004e-06/0.5525, allocations: 0 / 385 MB, free: 19.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.098e-06/0.5525, allocations: 0 / 385 MB, free: 19.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004966/0.553, allocations: 0 / 385 MB, free: 19.43 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03125/0.5842, allocations: 9.268 MB / 394.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.5843, allocations: 9.094 kB / 394.3 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01515/0.5995, allocations: 2.084 MB / 396.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0147/0.6142, allocations: 5.366 MB / 401.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008158/0.6151, allocations: 0.6329 MB / 402.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002919/0.618, allocations: 0.8474 MB / 403.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03334/0.6514, allocations: 11.37 MB / 414.5 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003672/0.6518, allocations: 7.281 kB / 414.6 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002435/0.6543, allocations: 354.9 kB / 414.9 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004085/0.6547, allocations: 379.3 kB / 415.3 MB, free: 9.426 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02681/0.6815, allocations: 9.62 MB / 424.9 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09092/0.7725, allocations: 35.97 MB / 460.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02403/0.7966, allocations: 16.89 MB / 477.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04345/0.8401, allocations: 9.393 MB / 487.1 MB, free: 3.199 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.8403, allocations: 73.11 kB / 487.2 MB, free: 3.117 MB / 378.7 MB Notification: Performance of pre-optimization done (n=327): time 1.522e-05/0.8403, allocations: 0 / 487.2 MB, free: 3.117 MB / 378.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=390): time 0.08109/0.9214, allocations: 17.4 MB / 0.4928 GB, free: 1.555 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.275e-05/0.9215, allocations: 98.45 kB / 0.4929 GB, free: 1.445 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01066/0.9322, allocations: 4.439 MB / 0.4972 GB, free: 13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006858/0.9329, allocations: 93.7 kB / 0.4973 GB, free: 12.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004037/0.937, allocations: 3.569 MB / 0.5008 GB, free: 9.309 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002049/0.9391, allocations: 1.318 MB / 0.5021 GB, free: 8.004 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004468/0.9396, allocations: 96 kB / 0.5022 GB, free: 7.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004475/0.94, allocations: 496.3 kB / 0.5026 GB, free: 7.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005595/0.9456, allocations: 2.043 MB / 0.5046 GB, free: 5.367 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009187/0.9548, allocations: 3.472 MB / 0.508 GB, free: 1.273 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/0.9665, allocations: 2.648 MB / 0.5106 GB, free: 14.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-05/0.9666, allocations: 14.52 kB / 0.5106 GB, free: 14.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=607) (initialization): time 0.01985/0.9865, allocations: 6.561 MB / 0.517 GB, free: 8.336 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.048e-05/0.9866, allocations: 24 kB / 0.5171 GB, free: 8.312 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.075e-05/0.9867, allocations: 44 kB / 0.5171 GB, free: 8.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003434/0.9902, allocations: 0.9373 MB / 0.518 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006068/0.9963, allocations: 1.095 MB / 0.5191 GB, free: 6.293 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2857/1.282, allocations: 10.97 MB / 0.5298 GB, free: 144.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005391/1.288, allocations: 255.4 kB / 0.53 GB, free: 144.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009875/1.289, allocations: 208.7 kB / 0.5302 GB, free: 144.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 201 * 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 (536): * Single equations (assignments): 529 * 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,92.0%) 30,(2,100.0%) 13,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006715/1.295, allocations: 2.557 MB / 0.5327 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001373/1.297, allocations: 493.3 kB / 0.5332 GB, free: 143.4 MB / 426.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[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.01534/1.312, allocations: 5.926 MB / 0.539 GB, free: 140.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.958e-05/1.312, allocations: 38.91 kB / 0.539 GB, free: 140.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.713e-05/1.312, allocations: 19.48 kB / 0.539 GB, free: 140.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.212e-05/1.312, allocations: 17.81 kB / 0.5391 GB, free: 140.9 MB / 426.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[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.03567/1.348, allocations: 14.08 MB / 0.5528 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.773e-05/1.348, allocations: 7.578 kB / 0.5528 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00415/1.352, allocations: 0.6681 MB / 0.5535 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003452/1.356, allocations: 1.026 MB / 0.5545 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006918/1.356, allocations: 98.56 kB / 0.5546 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02066/1.377, allocations: 14.07 MB / 0.5683 GB, free: 122.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.989e-06/1.377, allocations: 11.94 kB / 0.5683 GB, free: 122.6 MB / 426.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[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.01863/1.396, allocations: 8.627 MB / 0.5767 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003461/1.399, allocations: 1.029 MB / 0.5777 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001724/1.401, allocations: 92.58 kB / 0.5778 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004267/1.405, allocations: 219.2 kB / 0.578 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/1.406, allocations: 298.4 kB / 0.5783 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000463/1.407, allocations: 112 kB / 0.5784 GB, free: 112.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006812/1.414, allocations: 3.007 MB / 0.5814 GB, free: 109.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.171e-06/1.414, allocations: 0 / 0.5814 GB, free: 109.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007909/1.422, allocations: 1.515 MB / 0.5829 GB, free: 107.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (304): * Single equations (assignments): 298 * 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 {(2,100.0%) 13,(4,93.8%) 33,(6,69.4%) 29,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009846/1.423, allocations: 253.4 kB / 0.5831 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01273/1.436, allocations: 5.98 MB / 0.5889 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/1.436, allocations: 4 kB / 0.5889 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007691/1.443, allocations: 3.583 MB / 0.5924 GB, free: 98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006511/1.45, allocations: 1.047 MB / 0.5935 GB, free: 96.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03584/1.486, allocations: 18.1 MB / 0.6111 GB, free: 78.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009157/1.495, allocations: 5.123 MB / 0.6161 GB, free: 73.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002062/1.497, allocations: 363.4 kB / 0.6165 GB, free: 73.25 MB / 426.7 MB Notification: Performance of SimCode: time 2.023e-06/1.497, allocations: 0 / 0.6165 GB, free: 73.25 MB / 426.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(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] .