Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.817/1.817, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003599, allocations: 8 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08243/0.08282, allocations: 44.52 MB / 308.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.01395/0.09681, allocations: 9.34 MB / 317.7 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008561/0.1054, allocations: 3.769 MB / 321.5 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002078/0.1075, allocations: 47.81 kB / 321.5 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002579/0.1102, allocations: 0.6764 MB / 322.2 MB, free: 3.129 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003669/0.1139, allocations: 0.814 MB / 323 MB, free: 2.312 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001671/0.1156, allocations: 335.5 kB / 323.3 MB, free: 1.984 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004582/0.1202, allocations: 2.094 MB / 325.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003294/0.1235, allocations: 1.678 MB / 327.1 MB, free: 14.17 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002057/0.1256, allocations: 1.012 MB / 328.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00263/0.1283, allocations: 1.327 MB / 329.4 MB, free: 11.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006474/0.129, allocations: 164 kB / 329.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.1303, allocations: 355.6 kB / 330 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.1314, allocations: 0.7711 MB / 330.7 MB, free: 10.54 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009351/0.1324, allocations: 0.5861 MB / 331.3 MB, free: 9.949 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005636/0.138, allocations: 3.993 MB / 335.3 MB, free: 5.945 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.66e-06/0.1381, allocations: 0 / 335.3 MB, free: 5.945 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.65e-06/0.1381, allocations: 4 kB / 335.3 MB, free: 5.941 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.514e-05/0.1382, allocations: 3.938 kB / 335.3 MB, free: 5.938 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.007428/0.1456, allocations: 2.962 MB / 338.3 MB, free: 2.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1457, allocations: 12.03 kB / 338.3 MB, free: 2.898 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.1475, allocations: 408.1 kB / 338.7 MB, free: 2.496 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004088/0.1516, allocations: 1.651 MB / 340.3 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.1518, allocations: 189 kB / 340.5 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005846/0.1524, allocations: 248 kB / 340.8 MB, free: 368 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008602/0.161, allocations: 3.219 MB / 344 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.88e-05/0.1612, allocations: 15.84 kB / 344 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003532/0.1616, allocations: 103.9 kB / 344.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001941/0.1618, allocations: 116.9 kB / 344.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007872/0.1697, allocations: 2.686 MB / 346.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0253/0.195, allocations: 10.39 MB / 357.3 MB, free: 15.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003457/0.1985, allocations: 1.756 MB / 359.1 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004087/0.199, allocations: 203.2 kB / 359.3 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.399e-05/0.199, allocations: 47.56 kB / 359.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=114): time 5.327e-06/0.1991, allocations: 0 / 359.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=136): time 0.02648/0.2255, allocations: 8.661 MB / 368 MB, free: 4.438 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.2257, allocations: 72.66 kB / 368 MB, free: 4.352 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003815/0.2295, allocations: 1.848 MB / 369.9 MB, free: 2.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000218/0.2297, allocations: 57.7 kB / 369.9 MB, free: 2.441 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.2309, allocations: 1.17 MB / 371.1 MB, free: 1.258 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006246/0.2315, allocations: 469.2 kB / 371.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.2317, allocations: 36 kB / 371.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002495/0.2319, allocations: 374.7 kB / 372 MB, free: 392 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2105/0.4424, allocations: 0.8508 MB / 372.8 MB, free: 59.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002775/0.4453, allocations: 1.341 MB / 374.2 MB, free: 58.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/0.4477, allocations: 1.057 MB / 375.2 MB, free: 58.28 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.149e-05/0.4478, allocations: 4.219 kB / 375.2 MB, free: 58.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.006567/0.4544, allocations: 2.779 MB / 378 MB, free: 57.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.4545, allocations: 10.91 kB / 378 MB, free: 57.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.849e-05/0.4545, allocations: 15.97 kB / 378 MB, free: 57.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/0.4564, allocations: 0.5465 MB / 378.6 MB, free: 57.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001989/0.4584, allocations: 402.8 kB / 379 MB, free: 57.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008716/0.4671, allocations: 5.243 MB / 384.2 MB, free: 54.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/0.4691, allocations: 133.2 kB / 384.3 MB, free: 54.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/0.4694, allocations: 76.3 kB / 384.4 MB, free: 54.25 MB / 314.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 (184): * Single equations (assignments): 180 * 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.001627/0.471, allocations: 0.7843 MB / 385.2 MB, free: 53.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005278/0.4716, allocations: 199.3 kB / 385.4 MB, free: 53.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005636/0.4772, allocations: 2.512 MB / 387.9 MB, free: 52.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.122e-05/0.4773, allocations: 19.59 kB / 387.9 MB, free: 52.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.4773, allocations: 3.969 kB / 387.9 MB, free: 52.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.619e-05/0.4774, allocations: 7.875 kB / 387.9 MB, free: 52.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.4895, allocations: 5.339 MB / 393.3 MB, free: 50.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.4895, allocations: 3.812 kB / 393.3 MB, free: 50.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/0.491, allocations: 249.8 kB / 393.5 MB, free: 50.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002226/0.4933, allocations: 0.5867 MB / 394.1 MB, free: 49.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002191/0.4936, allocations: 47.31 kB / 394.1 MB, free: 49.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009216/0.5028, allocations: 6.724 MB / 400.9 MB, free: 42.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.068e-06/0.5028, allocations: 8.5 kB / 400.9 MB, free: 42.9 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00722/0.5101, allocations: 3.713 MB / 404.6 MB, free: 39.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.5114, allocations: 458.6 kB / 405 MB, free: 38.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003952/0.5118, allocations: 31.95 kB / 405.1 MB, free: 38.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/0.5133, allocations: 121.6 kB / 405.2 MB, free: 38.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.5136, allocations: 92.86 kB / 405.3 MB, free: 38.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.5138, allocations: 42.98 kB / 405.3 MB, free: 38.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002346/0.5161, allocations: 1.279 MB / 406.6 MB, free: 37.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-06/0.5162, allocations: 4 kB / 406.6 MB, free: 37.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002571/0.5188, allocations: 0.5646 MB / 407.2 MB, free: 36.58 MB / 314.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 (109): * Single equations (assignments): 105 * 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.0004584/0.5192, allocations: 169.9 kB / 407.3 MB, free: 36.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004904/0.5242, allocations: 2.477 MB / 409.8 MB, free: 33.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.286e-06/0.5242, allocations: 0 / 409.8 MB, free: 33.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003049/0.5273, allocations: 1.504 MB / 411.3 MB, free: 32.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.5296, allocations: 405.8 kB / 411.7 MB, free: 32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009936/0.5395, allocations: 6.103 MB / 417.8 MB, free: 25.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001921/0.5415, allocations: 2.032 MB / 419.9 MB, free: 23.76 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007967/0.5423, allocations: 143.4 kB / 420 MB, free: 23.62 MB / 314.7 MB Notification: Performance of SimCode: time 2.059e-06/0.5423, allocations: 0 / 420 MB, free: 23.62 MB / 314.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] .