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.AIMC_withLosses.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.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003641/0.0003642, allocations: 12 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07882/0.0792, allocations: 44.51 MB / 308.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01677/0.09602, allocations: 11.07 MB / 319.4 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01042/0.1065, allocations: 4.518 MB / 324 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002127/0.1086, allocations: 59.75 kB / 324 MB, free: 1.316 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002722/0.1114, allocations: 0.789 MB / 324.8 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004768/0.1162, allocations: 1.203 MB / 326 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002721/0.1189, allocations: 0.6559 MB / 326.7 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006576/0.1255, allocations: 3.009 MB / 329.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00413/0.1297, allocations: 2.254 MB / 331.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.1323, allocations: 1.366 MB / 333.3 MB, free: 7.977 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003132/0.1355, allocations: 1.654 MB / 334.9 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006993/0.1362, allocations: 220 kB / 335.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001769/0.138, allocations: 0.5034 MB / 335.7 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.1393, allocations: 0.9619 MB / 336.6 MB, free: 4.633 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.1406, allocations: 0.8043 MB / 337.4 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008544/0.1492, allocations: 5.906 MB / 343.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.869e-06/0.1492, allocations: 0 / 343.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.438e-06/0.1492, allocations: 0 / 343.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001109/0.1494, allocations: 4 kB / 343.3 MB, free: 13.89 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01285/0.1622, allocations: 4.269 MB / 347.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1623, allocations: 12.03 kB / 347.6 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006123/0.1684, allocations: 0.8887 MB / 348.5 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006528/0.175, allocations: 2.479 MB / 351 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/0.1754, allocations: 250.7 kB / 351.2 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.1764, allocations: 335.9 kB / 351.6 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.1883, allocations: 4.535 MB / 356.1 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.852e-05/0.1885, allocations: 3.906 kB / 356.1 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000475/0.189, allocations: 132 kB / 356.2 MB, free: 0.793 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00022/0.1892, allocations: 158.6 kB / 356.4 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.2004, allocations: 3.903 MB / 360.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2529/0.4533, allocations: 14.2 MB / 374.5 MB, free: 52.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01452/0.4679, allocations: 6.951 MB / 381.4 MB, free: 47.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01324/0.4812, allocations: 3.679 MB / 385.1 MB, free: 46.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.657e-05/0.4813, allocations: 53.61 kB / 385.2 MB, free: 46.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=169): time 1.031e-05/0.4814, allocations: 2.297 kB / 385.2 MB, free: 46.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=189): time 0.03858/0.52, allocations: 8.113 MB / 393.3 MB, free: 42.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.5201, allocations: 76.91 kB / 393.4 MB, free: 42.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006998/0.5271, allocations: 2.574 MB / 395.9 MB, free: 41.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003746/0.5275, allocations: 54.77 kB / 396 MB, free: 41.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.529, allocations: 1.487 MB / 397.5 MB, free: 40.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008353/0.5299, allocations: 0.6361 MB / 398.1 MB, free: 39.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.5302, allocations: 35.28 kB / 398.1 MB, free: 39.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.5304, allocations: 385.4 kB / 398.5 MB, free: 39.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003725/0.5341, allocations: 0.9196 MB / 399.4 MB, free: 39.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004102/0.5383, allocations: 1.301 MB / 400.7 MB, free: 38.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004475/0.5428, allocations: 1.163 MB / 401.9 MB, free: 37.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-05/0.5429, allocations: 2.594 kB / 401.9 MB, free: 37.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.01266/0.5556, allocations: 2.941 MB / 404.9 MB, free: 35.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.984e-05/0.5557, allocations: 40.73 kB / 404.9 MB, free: 35.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.08e-05/0.5557, allocations: 15.38 kB / 404.9 MB, free: 35.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003578/0.5593, allocations: 0.5662 MB / 405.5 MB, free: 35.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004505/0.5639, allocations: 441.9 kB / 405.9 MB, free: 35.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01987/0.5838, allocations: 7.244 MB / 413.1 MB, free: 28.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003551/0.5874, allocations: 92 kB / 413.2 MB, free: 27.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005317/0.588, allocations: 77.39 kB / 413.3 MB, free: 27.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (200): * Single equations (assignments): 195 * 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,(8,62.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004238/0.5922, allocations: 1.157 MB / 414.5 MB, free: 26.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001089/0.5933, allocations: 256.2 kB / 414.7 MB, free: 26.44 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0124/0.6058, allocations: 2.932 MB / 417.7 MB, free: 23.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.637e-05/0.6059, allocations: 20 kB / 417.7 MB, free: 23.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.84e-05/0.6059, allocations: 8 kB / 417.7 MB, free: 23.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.028e-05/0.606, allocations: 11.95 kB / 417.7 MB, free: 23.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02449/0.6305, allocations: 6.364 MB / 424.1 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.997e-05/0.6306, allocations: 7.953 kB / 424.1 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003449/0.6341, allocations: 287.7 kB / 424.3 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004016/0.6381, allocations: 0.6266 MB / 425 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004256/0.6386, allocations: 43.98 kB / 425 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02469/0.6633, allocations: 10.81 MB / 435.8 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/0.6634, allocations: 3.938 kB / 435.8 MB, free: 4.758 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/0.6812, allocations: 4.187 MB / 440 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002955/0.6842, allocations: 0.545 MB / 440.6 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006582/0.685, allocations: 39.98 kB / 440.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.6866, allocations: 95.92 kB / 440.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004278/0.6871, allocations: 141.7 kB / 440.8 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001905/0.6873, allocations: 51.98 kB / 440.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003873/0.6911, allocations: 1.799 MB / 442.7 MB, free: 13.83 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.091e-06/0.6912, allocations: 0 / 442.7 MB, free: 13.83 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003619/0.6948, allocations: 0.6907 MB / 443.4 MB, free: 13.14 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,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 (129): * Single equations (assignments): 123 * 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%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001457/0.6963, allocations: 331.7 kB / 443.7 MB, free: 12.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007473/0.7038, allocations: 2.927 MB / 446.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.676e-06/0.7038, allocations: 0 / 446.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004863/0.7087, allocations: 1.975 MB / 448.6 MB, free: 7.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/0.7119, allocations: 0.5307 MB / 449.1 MB, free: 7.367 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01811/0.73, allocations: 8.39 MB / 457.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004081/0.7342, allocations: 2.635 MB / 460.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/0.7352, allocations: 183.4 kB / 460.3 MB, free: 12.09 MB / 346.7 MB Notification: Performance of SimCode: time 1.756e-06/0.7352, allocations: 3.938 kB / 460.3 MB, free: 12.09 MB / 346.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] .