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_Initialize.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_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003561, allocations: 12 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08444, allocations: 44.5 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01589/0.1004, allocations: 10.45 MB / 318.8 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.1109, allocations: 4.007 MB / 322.8 MB, free: 2.516 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003118/0.114, allocations: 59.75 kB / 322.9 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004369/0.1184, allocations: 0.7502 MB / 323.6 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006745/0.1252, allocations: 1.114 MB / 324.7 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.1288, allocations: 0.5886 MB / 325.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006828/0.1357, allocations: 2.803 MB / 328.1 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003771/0.1395, allocations: 2.177 MB / 330.3 MB, free: 10.97 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002328/0.1418, allocations: 1.253 MB / 331.6 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002567/0.1444, allocations: 1.51 MB / 333.1 MB, free: 8.195 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005463/0.145, allocations: 208 kB / 333.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00126/0.1463, allocations: 363.8 kB / 333.6 MB, free: 7.637 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000925/0.1472, allocations: 0.7436 MB / 334.4 MB, free: 6.891 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009962/0.1482, allocations: 0.7343 MB / 335.1 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007816/0.156, allocations: 5.497 MB / 340.6 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1561, allocations: 0 / 340.6 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1561, allocations: 4 kB / 340.6 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000106/0.1562, allocations: 0 / 340.6 MB, free: 0.6328 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01164/0.1679, allocations: 3.754 MB / 344.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.1679, allocations: 8.031 kB / 344.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005875/0.1738, allocations: 0.8154 MB / 345.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005604/0.1795, allocations: 2.202 MB / 347.4 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002993/0.1798, allocations: 230.2 kB / 347.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009135/0.1807, allocations: 319.9 kB / 347.9 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/0.1921, allocations: 4.242 MB / 352.2 MB, free: 4.887 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.183e-05/0.1922, allocations: 4 kB / 352.2 MB, free: 4.883 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004475/0.1926, allocations: 128 kB / 352.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001947/0.1929, allocations: 150.2 kB / 352.4 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009999/0.2029, allocations: 3.636 MB / 356.1 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03123/0.2341, allocations: 13.55 MB / 369.6 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2309/0.4651, allocations: 6.847 MB / 376.5 MB, free: 52.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0162/0.4814, allocations: 3.244 MB / 379.7 MB, free: 51.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.575e-05/0.4815, allocations: 49.47 kB / 379.8 MB, free: 51.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=130): time 1.143e-05/0.4816, allocations: 3.844 kB / 379.8 MB, free: 51.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.05215/0.5337, allocations: 6.805 MB / 386.6 MB, free: 48.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.5338, allocations: 71.39 kB / 386.6 MB, free: 48.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005885/0.5397, allocations: 1.805 MB / 388.5 MB, free: 47.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003383/0.5401, allocations: 51.2 kB / 388.5 MB, free: 47.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.5415, allocations: 1.343 MB / 389.8 MB, free: 46.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007984/0.5423, allocations: 0.5085 MB / 390.4 MB, free: 45.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.5426, allocations: 34.47 kB / 390.4 MB, free: 45.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.5428, allocations: 383.8 kB / 390.8 MB, free: 45.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003121/0.546, allocations: 0.7789 MB / 391.5 MB, free: 45.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003609/0.5496, allocations: 1.243 MB / 392.8 MB, free: 44.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003528/0.5532, allocations: 0.9894 MB / 393.8 MB, free: 43.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.147e-05/0.5533, allocations: 7.672 kB / 393.8 MB, free: 43.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.01/0.5633, allocations: 2.58 MB / 396.4 MB, free: 42.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/0.5634, allocations: 13.91 kB / 396.4 MB, free: 42.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-05/0.5634, allocations: 11.81 kB / 396.4 MB, free: 42.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003101/0.5666, allocations: 0.5009 MB / 396.9 MB, free: 42.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003677/0.5703, allocations: 403.3 kB / 397.3 MB, free: 42.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/0.5856, allocations: 6.56 MB / 403.8 MB, free: 37.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/0.5875, allocations: 77.08 kB / 403.9 MB, free: 37.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000175/0.5877, allocations: 76.39 kB / 404 MB, free: 37.42 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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): 182 * Array equations: 0 * 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 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002158/0.5898, allocations: 1.044 MB / 405 MB, free: 36.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000487/0.5903, allocations: 198 kB / 405.2 MB, free: 36.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005388/0.5958, allocations: 2.575 MB / 407.8 MB, free: 34.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/0.5958, allocations: 16 kB / 407.8 MB, free: 34.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.5958, allocations: 4 kB / 407.8 MB, free: 34.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.272e-05/0.5959, allocations: 7.969 kB / 407.8 MB, free: 34.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/0.6066, allocations: 5.62 MB / 413.5 MB, free: 28.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.6067, allocations: 4 kB / 413.5 MB, free: 28.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/0.608, allocations: 239.2 kB / 413.7 MB, free: 28.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001619/0.6097, allocations: 496.7 kB / 414.2 MB, free: 27.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001818/0.6099, allocations: 39.98 kB / 414.2 MB, free: 27.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.6211, allocations: 10.6 MB / 424.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.934e-06/0.6212, allocations: 0 / 424.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006879/0.6281, allocations: 3.673 MB / 428.5 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.6293, allocations: 462.6 kB / 428.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003965/0.6297, allocations: 30.19 kB / 429 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.6309, allocations: 75.95 kB / 429 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.6313, allocations: 117.1 kB / 429.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/0.6314, allocations: 39.98 kB / 429.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002562/0.634, allocations: 1.246 MB / 430.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.75e-07/0.634, allocations: 0 / 430.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002812/0.6368, allocations: 0.5886 MB / 431 MB, free: 10.21 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * 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): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003808/0.6372, allocations: 164.9 kB / 431.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004939/0.6422, allocations: 2.448 MB / 433.6 MB, free: 7.562 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.844e-06/0.6422, allocations: 5 kB / 433.6 MB, free: 7.559 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003179/0.6454, allocations: 1.766 MB / 435.4 MB, free: 5.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002641/0.6481, allocations: 490.4 kB / 435.9 MB, free: 5.254 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.6615, allocations: 7.162 MB / 443.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003292/0.6648, allocations: 2.375 MB / 445.4 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007465/0.6656, allocations: 147.4 kB / 445.6 MB, free: 11.49 MB / 330.7 MB Notification: Performance of SimCode: time 1.675e-06/0.6656, allocations: 0 / 445.6 MB, free: 11.49 MB / 330.7 MB Notification: Performance of Templates: time 0.4209/1.087, allocations: 91.54 MB / 0.5245 GB, free: 123.3 MB / 394.7 MB