Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|constantSpeed.phi|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 186.7 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003574, allocations: 8 kB / 233.2 MB, free: 3.035 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07035/0.07073, allocations: 38.76 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.01425/0.08502, allocations: 9.339 MB / 281.3 MB, free: 2.797 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.009163/0.09423, allocations: 3.717 MB / 285 MB, free: 15.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002103/0.09638, allocations: 59.69 kB / 285 MB, free: 15.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002665/0.09908, allocations: 0.6647 MB / 285.7 MB, free: 14.35 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003561/0.1027, allocations: 0.8295 MB / 286.5 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.1041, allocations: 315.6 kB / 286.8 MB, free: 13.21 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004563/0.1087, allocations: 2.098 MB / 288.9 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003203/0.1119, allocations: 1.697 MB / 290.6 MB, free: 9.367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002051/0.114, allocations: 1.024 MB / 291.7 MB, free: 8.34 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002611/0.1167, allocations: 1.3 MB / 293 MB, free: 7.035 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006436/0.1173, allocations: 168 kB / 293.1 MB, free: 6.871 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.1185, allocations: 267.9 kB / 293.4 MB, free: 6.609 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001237/0.1197, allocations: 0.775 MB / 294.2 MB, free: 5.832 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001043/0.1208, allocations: 0.5822 MB / 294.7 MB, free: 5.242 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006085/0.1269, allocations: 3.946 MB / 298.7 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.472e-06/0.127, allocations: 0 / 298.7 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.54e-06/0.127, allocations: 0 / 298.7 MB, free: 1.285 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.753e-05/0.1271, allocations: 0 / 298.7 MB, free: 1.285 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: 655 * Number of variables: 655 Notification: Performance of Generate backend data structure: time 0.1826/0.3097, allocations: 2.928 MB / 301.6 MB, free: 28.17 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3097, allocations: 9.312 kB / 301.6 MB, free: 28.17 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001987/0.3117, allocations: 419.5 kB / 302 MB, free: 28.01 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004062/0.3158, allocations: 1.612 MB / 303.7 MB, free: 27.3 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001961/0.3161, allocations: 185.8 kB / 303.8 MB, free: 27.21 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005177/0.3166, allocations: 251 kB / 304.1 MB, free: 27.13 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007877/0.3245, allocations: 3.232 MB / 307.3 MB, free: 25.82 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-05/0.3246, allocations: 11.67 kB / 307.3 MB, free: 25.81 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002877/0.3249, allocations: 102.7 kB / 307.4 MB, free: 25.73 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001811/0.3251, allocations: 115.8 kB / 307.5 MB, free: 25.72 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006545/0.3317, allocations: 2.688 MB / 310.2 MB, free: 24.54 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01972/0.3514, allocations: 10.36 MB / 320.6 MB, free: 17.07 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/0.3539, allocations: 1.752 MB / 322.3 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000245/0.3542, allocations: 128.9 kB / 322.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.3542, allocations: 43.56 kB / 322.5 MB, free: 15.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=113): time 5.067e-06/0.3543, allocations: 0 / 322.5 MB, free: 15.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=135): time 0.02213/0.3764, allocations: 8.525 MB / 331 MB, free: 6.438 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.3765, allocations: 64.72 kB / 331.1 MB, free: 6.363 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002969/0.3795, allocations: 1.798 MB / 332.9 MB, free: 4.566 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002045/0.3797, allocations: 49.69 kB / 332.9 MB, free: 4.512 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006538/0.3804, allocations: 1.172 MB / 334.1 MB, free: 3.332 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003971/0.3808, allocations: 468 kB / 334.6 MB, free: 2.879 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.3809, allocations: 41.19 kB / 334.6 MB, free: 2.84 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.381, allocations: 372.1 kB / 335 MB, free: 2.469 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.3827, allocations: 0.8589 MB / 335.8 MB, free: 1.609 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.3846, allocations: 1.338 MB / 337.2 MB, free: 60 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.3871, allocations: 1.053 MB / 338.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.3871, allocations: 4 kB / 338.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.006726/0.3939, allocations: 2.766 MB / 341 MB, free: 12.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.047e-05/0.3939, allocations: 16.77 kB / 341 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.429e-05/0.394, allocations: 16 kB / 341 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001858/0.3959, allocations: 0.541 MB / 341.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/0.3979, allocations: 403.3 kB / 342 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.408, allocations: 5.252 MB / 347.2 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002066/0.4101, allocations: 139.8 kB / 347.4 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002418/0.4104, allocations: 68 kB / 347.4 MB, free: 5.664 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * 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 (183): * Single equations (assignments): 179 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001993/0.4124, allocations: 0.7861 MB / 348.2 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006058/0.413, allocations: 199.2 kB / 348.4 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006128/0.4191, allocations: 2.507 MB / 350.9 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.954e-05/0.4192, allocations: 16 kB / 350.9 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/0.4193, allocations: 4 kB / 350.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.35e-05/0.4193, allocations: 7.969 kB / 350.9 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/0.4324, allocations: 5.312 MB / 356.2 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.4325, allocations: 4 kB / 356.2 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/0.434, allocations: 248 kB / 356.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002215/0.4362, allocations: 0.5837 MB / 357.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001901/0.4364, allocations: 36.09 kB / 357.1 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/0.4483, allocations: 6.735 MB / 363.8 MB, free: 4.852 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/0.4484, allocations: 7.938 kB / 363.9 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008526/0.4569, allocations: 3.691 MB / 367.5 MB, free: 1.098 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001349/0.4583, allocations: 458.5 kB / 368 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003548/0.4587, allocations: 35.98 kB / 368 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.4601, allocations: 115.8 kB / 368.1 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.4604, allocations: 104.7 kB / 368.2 MB, free: 388 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/0.4606, allocations: 43.98 kB / 368.3 MB, free: 344 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002599/0.4632, allocations: 1.238 MB / 369.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.79e-07/0.4632, allocations: 0 / 369.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002543/0.4658, allocations: 0.5497 MB / 370.1 MB, free: 14.56 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.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 (108): * Single equations (assignments): 104 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 20,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004273/0.4662, allocations: 159.8 kB / 370.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005781/0.472, allocations: 2.471 MB / 372.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.377e-06/0.472, allocations: 0 / 372.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003645/0.4757, allocations: 1.498 MB / 374.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.4782, allocations: 398.5 kB / 374.6 MB, free: 9.984 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.4902, allocations: 6.064 MB / 380.7 MB, free: 3.848 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/0.4928, allocations: 2.039 MB / 382.7 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007943/0.4937, allocations: 139.3 kB / 382.8 MB, free: 1.641 MB / 298.7 MB Notification: Performance of SimCode: time 1.6e-06/0.4937, allocations: 0 / 382.8 MB, free: 1.641 MB / 298.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(smee.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] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[2] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[3] - terminalBox.plug_sn.pin[3].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(smee.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] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[2] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[3] - terminalBox.plug_sn.pin[3].v})[1] .