Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 194.8 MB / 211.7 MB, free: 2.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003482, allocations: 8 kB / 264.5 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09338, allocations: 44.52 MB / 309.1 MB, free: 332 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4678/0.5612, allocations: 103.7 MB / 412.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.5616, allocations: 97.59 kB / 412.9 MB, free: 12.13 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3649/0.9265, allocations: 80.22 MB / 493.1 MB, free: 10.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.9266, allocations: 0 / 493.1 MB, free: 10.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005486/0.9271, allocations: 75.94 kB / 493.2 MB, free: 10.54 MB / 378.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.02305/0.9502, allocations: 3.533 MB / 496.7 MB, free: 6.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.9503, allocations: 8.031 kB / 496.7 MB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009921/0.9602, allocations: 0.7335 MB / 497.5 MB, free: 6.184 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0195/0.9798, allocations: 3.371 MB / 0.4891 GB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005516/0.9804, allocations: 238.2 kB / 0.4893 GB, free: 2.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001922/0.9824, allocations: 311.9 kB / 0.4896 GB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/1.004, allocations: 4.176 MB / 0.4937 GB, free: 13.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002175/1.004, allocations: 3.906 kB / 0.4937 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001451/1.006, allocations: 136 kB / 0.4938 GB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003579/1.006, allocations: 142.2 kB / 0.494 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01748/1.023, allocations: 3.46 MB / 0.4973 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05483/1.078, allocations: 13.56 MB / 0.5106 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01782/1.096, allocations: 6.881 MB / 0.5173 GB, free: 4.465 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/1.11, allocations: 3.277 MB / 0.5205 GB, free: 1.102 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/1.11, allocations: 43.88 kB / 0.5205 GB, free: 1.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=130): time 4.669e-06/1.11, allocations: 0 / 0.5205 GB, free: 1.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.2957/1.406, allocations: 6.787 MB / 0.5272 GB, free: 86.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/1.406, allocations: 69.75 kB / 0.5272 GB, free: 86.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004672/1.41, allocations: 1.814 MB / 0.529 GB, free: 86.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003473/1.411, allocations: 51.05 kB / 0.5291 GB, free: 86.42 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/1.412, allocations: 1.418 MB / 0.5304 GB, free: 85.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007152/1.413, allocations: 0.5134 MB / 0.5309 GB, free: 85.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/1.413, allocations: 39.03 kB / 0.531 GB, free: 85.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/1.413, allocations: 375.9 kB / 0.5313 GB, free: 85.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002068/1.415, allocations: 0.7843 MB / 0.5321 GB, free: 85.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002482/1.418, allocations: 1.221 MB / 0.5333 GB, free: 84.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00262/1.42, allocations: 0.9913 MB / 0.5343 GB, free: 84.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.931e-05/1.421, allocations: 5.031 kB / 0.5343 GB, free: 84.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.008246/1.429, allocations: 2.695 MB / 0.5369 GB, free: 84.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.455e-05/1.429, allocations: 17.17 kB / 0.5369 GB, free: 84.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.386e-05/1.429, allocations: 13.72 kB / 0.5369 GB, free: 84.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/1.431, allocations: 0.4999 MB / 0.5374 GB, free: 84.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003216/1.435, allocations: 401.1 kB / 0.5378 GB, free: 84.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/1.447, allocations: 6.546 MB / 0.5442 GB, free: 81.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002602/1.45, allocations: 80.91 kB / 0.5443 GB, free: 81.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003617/1.45, allocations: 75.3 kB / 0.5443 GB, free: 81.96 MB / 410.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.002851/1.453, allocations: 1.048 MB / 0.5454 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007083/1.454, allocations: 194.1 kB / 0.5456 GB, free: 81.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006605/1.46, allocations: 2.569 MB / 0.5481 GB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/1.46, allocations: 14.38 kB / 0.5481 GB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/1.46, allocations: 8.578 kB / 0.5481 GB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-05/1.46, allocations: 7.125 kB / 0.5481 GB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01485/1.475, allocations: 5.654 MB / 0.5536 GB, free: 80.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/1.475, allocations: 6.531 kB / 0.5536 GB, free: 80.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002057/1.477, allocations: 230.9 kB / 0.5538 GB, free: 80.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/1.48, allocations: 0.4988 MB / 0.5543 GB, free: 80.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002933/1.48, allocations: 35.41 kB / 0.5544 GB, free: 80.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.493, allocations: 10.6 MB / 0.5647 GB, free: 73.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/1.493, allocations: 3.781 kB / 0.5647 GB, free: 73.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008604/1.502, allocations: 3.655 MB / 0.5683 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001552/1.504, allocations: 472.8 kB / 0.5687 GB, free: 71.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005948/1.504, allocations: 31.48 kB / 0.5688 GB, free: 71.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/1.506, allocations: 81.89 kB / 0.5688 GB, free: 71.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003977/1.507, allocations: 109.6 kB / 0.5689 GB, free: 71.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/1.507, allocations: 47.72 kB / 0.569 GB, free: 71.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002748/1.509, allocations: 1.248 MB / 0.5702 GB, free: 71.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.509, allocations: 1.5 kB / 0.5702 GB, free: 71.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003614/1.513, allocations: 0.6372 MB / 0.5708 GB, free: 71.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * 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%) 1,(1,100.0%) 12,(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.0008285/1.514, allocations: 348.7 kB / 0.5712 GB, free: 71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006188/1.52, allocations: 2.453 MB / 0.5736 GB, free: 69.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/1.52, allocations: 0 / 0.5736 GB, free: 69.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003929/1.524, allocations: 1.742 MB / 0.5753 GB, free: 68.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003695/1.528, allocations: 497 kB / 0.5757 GB, free: 68.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/1.546, allocations: 7.19 MB / 0.5828 GB, free: 64.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003201/1.549, allocations: 2.431 MB / 0.5851 GB, free: 63.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002583/1.552, allocations: 422.3 kB / 0.5855 GB, free: 63.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006731/1.552, allocations: 129.5 kB / 0.5857 GB, free: 63.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/1.552, allocations: 0 / 0.5857 GB, free: 63.62 MB / 410.7 MB Notification: Performance of Templates: time 0.08277/1.635, allocations: 31.39 MB / 0.6163 GB, free: 57.01 MB / 410.7 MB