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.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,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.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.928/1.928, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003557, allocations: 11.98 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07997/0.08035, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01177/0.09217, allocations: 7.862 MB / 316.2 MB, free: 9.125 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007512/0.09973, allocations: 3.296 MB / 319.5 MB, free: 5.816 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00141/0.1012, allocations: 31.88 kB / 319.6 MB, free: 5.785 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.1032, allocations: 0.5519 MB / 320.1 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002823/0.1061, allocations: 0.6854 MB / 320.8 MB, free: 4.543 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.1073, allocations: 287.5 kB / 321.1 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003634/0.1109, allocations: 1.767 MB / 322.8 MB, free: 2.488 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00228/0.1133, allocations: 1.272 MB / 324.1 MB, free: 1.184 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.1149, allocations: 0.8524 MB / 325 MB, free: 336 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002037/0.117, allocations: 1.121 MB / 326.1 MB, free: 15.2 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004697/0.1175, allocations: 136 kB / 326.2 MB, free: 15.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.1186, allocations: 327.7 kB / 326.5 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.1197, allocations: 0.8025 MB / 327.3 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008011/0.1205, allocations: 0.5081 MB / 327.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004957/0.1255, allocations: 3.362 MB / 331.2 MB, free: 10.06 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.026e-06/0.1256, allocations: 3.938 kB / 331.2 MB, free: 10.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.07e-06/0.1256, allocations: 3.938 kB / 331.2 MB, free: 10.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.326e-05/0.1257, allocations: 0 / 331.2 MB, free: 10.05 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.006581/0.1323, allocations: 2.723 MB / 333.9 MB, free: 7.254 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1323, allocations: 8.031 kB / 333.9 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001203/0.1335, allocations: 328.3 kB / 334.3 MB, free: 6.922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004018/0.1376, allocations: 1.545 MB / 335.8 MB, free: 5.324 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.1378, allocations: 152 kB / 336 MB, free: 5.172 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005464/0.1384, allocations: 207.8 kB / 336.2 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007098/0.1455, allocations: 2.682 MB / 338.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.808e-05/0.1456, allocations: 11.91 kB / 338.9 MB, free: 2.195 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000274/0.1459, allocations: 87.94 kB / 338.9 MB, free: 2.109 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/0.1461, allocations: 99.92 kB / 339 MB, free: 2.012 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006666/0.1528, allocations: 2.276 MB / 341.3 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01909/0.1719, allocations: 8.213 MB / 349.5 MB, free: 7.324 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004124/0.1761, allocations: 1.616 MB / 351.1 MB, free: 5.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003372/0.1765, allocations: 130.1 kB / 351.3 MB, free: 5.496 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.1765, allocations: 43.56 kB / 351.3 MB, free: 5.445 MB / 298.7 MB Notification: Performance of pre-optimization done (n=116): time 5.086e-06/0.1765, allocations: 0 / 351.3 MB, free: 5.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.01868/0.1952, allocations: 6.473 MB / 357.8 MB, free: 14.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.1953, allocations: 64.72 kB / 357.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004113/0.1995, allocations: 2.097 MB / 360 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002394/0.1997, allocations: 49.7 kB / 360 MB, free: 12.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.2008, allocations: 1.016 MB / 361 MB, free: 11.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006258/0.2015, allocations: 461.3 kB / 361.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.2016, allocations: 24 kB / 361.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002346/0.2019, allocations: 366.8 kB / 361.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/0.204, allocations: 0.7652 MB / 362.6 MB, free: 9.922 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002424/0.2064, allocations: 1.022 MB / 363.6 MB, free: 8.809 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002532/0.209, allocations: 0.9177 MB / 364.6 MB, free: 7.887 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.849e-05/0.2091, allocations: 7.891 kB / 364.6 MB, free: 7.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.007379/0.2165, allocations: 2.685 MB / 367.2 MB, free: 5.172 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.203e-05/0.2166, allocations: 33.7 kB / 367.3 MB, free: 5.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.2166, allocations: 4.25 kB / 367.3 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002919/0.2195, allocations: 0.8016 MB / 368.1 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/0.2211, allocations: 271.5 kB / 368.3 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2235/0.4446, allocations: 9.267 MB / 377.6 MB, free: 56.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.4462, allocations: 93.91 kB / 377.7 MB, free: 56.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001935/0.4464, allocations: 61.56 kB / 377.8 MB, free: 56.14 MB / 314.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 (125): * Single equations (assignments): 120 * 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.001695/0.4482, allocations: 0.7377 MB / 378.5 MB, free: 55.78 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005191/0.4487, allocations: 198.1 kB / 378.7 MB, free: 55.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006399/0.4551, allocations: 2.524 MB / 381.2 MB, free: 54.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-05/0.4552, allocations: 15.86 kB / 381.2 MB, free: 54.83 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/0.4552, allocations: 6.969 kB / 381.2 MB, free: 54.83 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.862e-05/0.4553, allocations: 7.875 kB / 381.3 MB, free: 54.83 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.467, allocations: 4.918 MB / 386.2 MB, free: 52.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.4671, allocations: 1.375 kB / 386.2 MB, free: 52.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/0.4684, allocations: 218.4 kB / 386.4 MB, free: 52.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002506/0.471, allocations: 0.6682 MB / 387.1 MB, free: 52.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002175/0.4712, allocations: 35.42 kB / 387.1 MB, free: 52.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01119/0.4824, allocations: 8.336 MB / 395.4 MB, free: 46.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.4825, allocations: 7.656 kB / 395.4 MB, free: 46.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007883/0.4904, allocations: 3.561 MB / 399 MB, free: 44.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/0.4916, allocations: 438.5 kB / 399.4 MB, free: 44.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003211/0.4919, allocations: 27.98 kB / 399.4 MB, free: 44.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.4931, allocations: 94.97 kB / 399.5 MB, free: 44.1 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.4934, allocations: 106.5 kB / 399.6 MB, free: 44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.4935, allocations: 39.97 kB / 399.7 MB, free: 43.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002334/0.4959, allocations: 1.472 MB / 401.2 MB, free: 42.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.03e-06/0.4959, allocations: 0 / 401.2 MB, free: 42.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002327/0.4982, allocations: 0.5238 MB / 401.7 MB, free: 41.94 MB / 314.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 (94): * Single equations (assignments): 88 * 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.001039/0.4993, allocations: 312.5 kB / 402 MB, free: 41.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005036/0.5044, allocations: 2.466 MB / 404.4 MB, free: 39.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.396e-06/0.5044, allocations: 5.312 kB / 404.5 MB, free: 39.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003132/0.5076, allocations: 1.655 MB / 406.1 MB, free: 37.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.5098, allocations: 406.1 kB / 406.5 MB, free: 37.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009678/0.5195, allocations: 6.075 MB / 412.6 MB, free: 30.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/0.5213, allocations: 1.974 MB / 414.6 MB, free: 28.96 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006708/0.522, allocations: 143.4 kB / 414.7 MB, free: 28.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.914e-06/0.522, allocations: 0 / 414.7 MB, free: 28.82 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(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] .