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.AsynchronousInductionMachines.AIMC_withLosses.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.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PI.x|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.591/1.591, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003809/0.0003811, allocations: 12 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/0.09328, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01922/0.1125, allocations: 7.775 MB / 279.7 MB, free: 4.379 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01182/0.1244, allocations: 3.256 MB / 283 MB, free: 1.117 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002169/0.1266, allocations: 39.81 kB / 283 MB, free: 1.078 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.1299, allocations: 0.5442 MB / 283.5 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004638/0.1346, allocations: 0.6776 MB / 284.2 MB, free: 15.85 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.1363, allocations: 271.5 kB / 284.5 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005672/0.1421, allocations: 1.747 MB / 286.2 MB, free: 13.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003845/0.146, allocations: 1.288 MB / 287.5 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.1486, allocations: 0.8562 MB / 288.4 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003161/0.1518, allocations: 1.09 MB / 289.5 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006975/0.1526, allocations: 136 kB / 289.6 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.154, allocations: 251.8 kB / 289.9 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.1557, allocations: 0.7556 MB / 290.6 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.1569, allocations: 0.5081 MB / 291.1 MB, free: 8.91 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007365/0.1643, allocations: 3.308 MB / 294.4 MB, free: 5.594 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.402e-06/0.1643, allocations: 3.938 kB / 294.4 MB, free: 5.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.679e-06/0.1644, allocations: 0 / 294.4 MB, free: 5.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.173e-05/0.1645, allocations: 0 / 294.4 MB, free: 5.59 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01073/0.1752, allocations: 2.704 MB / 297.1 MB, free: 2.816 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.1753, allocations: 8.031 kB / 297.1 MB, free: 2.809 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00197/0.1773, allocations: 328.3 kB / 297.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006349/0.1836, allocations: 1.521 MB / 299 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003041/0.184, allocations: 156 kB / 299.1 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009512/0.185, allocations: 203.9 kB / 299.3 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2029/0.3878, allocations: 2.654 MB / 302 MB, free: 27.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-05/0.388, allocations: 3.562 kB / 302 MB, free: 27.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000243/0.3882, allocations: 82.42 kB / 302.1 MB, free: 27.92 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.3884, allocations: 91.53 kB / 302.2 MB, free: 27.91 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006409/0.3948, allocations: 2.26 MB / 304.4 MB, free: 27.13 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01811/0.413, allocations: 8.155 MB / 312.6 MB, free: 22.43 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00363/0.4166, allocations: 1.582 MB / 314.2 MB, free: 21.45 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002854/0.417, allocations: 129.1 kB / 314.3 MB, free: 21.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.417, allocations: 49.27 kB / 314.3 MB, free: 21.29 MB / 250.7 MB Notification: Performance of pre-optimization done (n=112): time 5.561e-06/0.4171, allocations: 0 / 314.3 MB, free: 21.29 MB / 250.7 MB Notification: Performance of matching and sorting (n=128): time 0.01636/0.4334, allocations: 6.631 MB / 321 MB, free: 17.3 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.4335, allocations: 72.3 kB / 321 MB, free: 17.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002994/0.4365, allocations: 2.08 MB / 323.1 MB, free: 15.09 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.4367, allocations: 49.7 kB / 323.2 MB, free: 15.03 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006134/0.4374, allocations: 0.9952 MB / 324.2 MB, free: 14.03 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/0.4378, allocations: 444.1 kB / 324.6 MB, free: 13.6 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.4379, allocations: 28.7 kB / 324.6 MB, free: 13.57 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.438, allocations: 358.8 kB / 325 MB, free: 13.21 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.4396, allocations: 0.7613 MB / 325.7 MB, free: 12.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.4414, allocations: 1.019 MB / 326.7 MB, free: 11.34 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001835/0.4433, allocations: 0.9138 MB / 327.7 MB, free: 10.42 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.561e-06/0.4433, allocations: 0 / 327.7 MB, free: 10.42 MB / 250.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005913/0.4492, allocations: 2.666 MB / 330.3 MB, free: 7.73 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/0.4493, allocations: 41.95 kB / 330.4 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.4494, allocations: 8 kB / 330.4 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002448/0.4518, allocations: 0.799 MB / 331.2 MB, free: 6.871 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.4533, allocations: 267.6 kB / 331.4 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01485/0.4681, allocations: 9.279 MB / 340.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.4697, allocations: 103.9 kB / 340.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.4699, allocations: 47.98 kB / 340.9 MB, free: 12.92 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (121): * Single equations (assignments): 116 * Array equations: 2 * Algorithm blocks: 1 * 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 {(1,100.0%) 6,(6,88.9%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001722/0.4716, allocations: 0.7524 MB / 341.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005353/0.4722, allocations: 197.6 kB / 341.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006534/0.4787, allocations: 2.49 MB / 344.3 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.68e-05/0.4788, allocations: 16 kB / 344.3 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-05/0.4788, allocations: 8 kB / 344.3 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-05/0.4789, allocations: 14.98 kB / 344.3 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.4917, allocations: 4.871 MB / 349.2 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.4917, allocations: 0 / 349.2 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.4932, allocations: 207.7 kB / 349.4 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002566/0.4957, allocations: 0.6726 MB / 350.1 MB, free: 3.602 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001886/0.496, allocations: 35.92 kB / 350.1 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01418/0.5101, allocations: 8.324 MB / 358.4 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.49e-06/0.5102, allocations: 3.938 kB / 358.4 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00874/0.5189, allocations: 3.532 MB / 362 MB, free: 7.273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.5202, allocations: 442.5 kB / 362.4 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003508/0.5206, allocations: 33.33 kB / 362.4 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.5219, allocations: 87.91 kB / 362.5 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.5222, allocations: 104.8 kB / 362.6 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.5224, allocations: 35.98 kB / 362.7 MB, free: 6.562 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002839/0.5252, allocations: 1.453 MB / 364.1 MB, free: 5.086 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.038e-06/0.5252, allocations: 0 / 364.1 MB, free: 5.086 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002416/0.5277, allocations: 0.5104 MB / 364.6 MB, free: 4.582 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (90): * Single equations (assignments): 84 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009237/0.5286, allocations: 267.3 kB / 364.9 MB, free: 4.363 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006129/0.5348, allocations: 2.445 MB / 367.3 MB, free: 1.875 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/0.5348, allocations: 5.312 kB / 367.3 MB, free: 1.871 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004053/0.5389, allocations: 1.636 MB / 369 MB, free: 184 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/0.5414, allocations: 402.6 kB / 369.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.554, allocations: 6.013 MB / 375.4 MB, free: 9.719 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/0.5566, allocations: 1.98 MB / 377.4 MB, free: 7.711 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006911/0.5573, allocations: 127.4 kB / 377.5 MB, free: 7.586 MB / 298.7 MB Notification: Performance of SimCode: time 1.616e-06/0.5573, allocations: 0 / 377.5 MB, free: 7.586 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(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({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[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({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[1] .