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.762/1.762, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003519, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08236/0.08273, allocations: 44.52 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.5279, allocations: 103.7 MB / 412.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.5282, allocations: 89.08 kB / 412.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2756/0.8037, allocations: 80.21 MB / 492.5 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.094e-06/0.8038, allocations: 4 kB / 492.5 MB, free: 13.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003074/0.8041, allocations: 71.94 kB / 492.6 MB, free: 13.08 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.01338/0.8175, allocations: 3.529 MB / 496.1 MB, free: 9.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.8176, allocations: 12.03 kB / 496.1 MB, free: 9.469 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005613/0.8232, allocations: 0.7257 MB / 496.8 MB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.8353, allocations: 3.379 MB / 0.4885 GB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003526/0.8357, allocations: 234.2 kB / 0.4887 GB, free: 5.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001248/0.837, allocations: 307.9 kB / 0.489 GB, free: 4.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.8499, allocations: 4.18 MB / 0.4931 GB, free: 480 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001113/0.8501, allocations: 7.906 kB / 0.4931 GB, free: 472 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006227/0.8508, allocations: 139.9 kB / 0.4932 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001952/0.851, allocations: 138.2 kB / 0.4934 GB, free: 192 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01057/0.8615, allocations: 3.46 MB / 0.4967 GB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03468/0.8963, allocations: 13.57 MB / 0.51 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009842/0.9062, allocations: 6.873 MB / 0.5167 GB, free: 7.012 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008664/0.9149, allocations: 3.273 MB / 0.5199 GB, free: 3.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.915, allocations: 51.88 kB / 0.52 GB, free: 3.602 MB / 410.7 MB Notification: Performance of pre-optimization done (n=130): time 5.117e-06/0.915, allocations: 0 / 0.52 GB, free: 3.602 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.2519/1.167, allocations: 6.786 MB / 0.5266 GB, free: 87.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/1.167, allocations: 72.09 kB / 0.5266 GB, free: 87.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/1.171, allocations: 1.62 MB / 0.5282 GB, free: 87.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002792/1.171, allocations: 53.45 kB / 0.5283 GB, free: 87.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008871/1.172, allocations: 1.349 MB / 0.5296 GB, free: 86.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005296/1.172, allocations: 0.508 MB / 0.5301 GB, free: 86.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/1.172, allocations: 35.38 kB / 0.5301 GB, free: 86.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/1.173, allocations: 381.5 kB / 0.5305 GB, free: 86.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/1.174, allocations: 0.7788 MB / 0.5313 GB, free: 86.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001921/1.176, allocations: 1.224 MB / 0.5324 GB, free: 85.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/1.178, allocations: 0.9952 MB / 0.5334 GB, free: 85.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/1.178, allocations: 4.031 kB / 0.5334 GB, free: 85.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005812/1.184, allocations: 2.575 MB / 0.5359 GB, free: 85.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4e-05/1.184, allocations: 13.62 kB / 0.536 GB, free: 85.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.152e-05/1.184, allocations: 14.91 kB / 0.536 GB, free: 85.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001835/1.186, allocations: 0.498 MB / 0.5365 GB, free: 85.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002355/1.189, allocations: 396.3 kB / 0.5368 GB, free: 85.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/1.199, allocations: 6.551 MB / 0.5432 GB, free: 82.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/1.201, allocations: 82.95 kB / 0.5433 GB, free: 82.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003197/1.201, allocations: 71.12 kB / 0.5434 GB, free: 82.68 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.002908/1.204, allocations: 1.049 MB / 0.5444 GB, free: 82.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005969/1.205, allocations: 196.5 kB / 0.5446 GB, free: 82.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0059/1.211, allocations: 2.566 MB / 0.5471 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/1.211, allocations: 15.64 kB / 0.5471 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/1.211, allocations: 7.875 kB / 0.5471 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.913e-05/1.211, allocations: 11.05 kB / 0.5471 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/1.224, allocations: 5.646 MB / 0.5526 GB, free: 81.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/1.224, allocations: 7.922 kB / 0.5526 GB, free: 81.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/1.226, allocations: 237.8 kB / 0.5529 GB, free: 81.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/1.228, allocations: 0.4962 MB / 0.5534 GB, free: 81.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002203/1.228, allocations: 37.95 kB / 0.5534 GB, free: 81.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01227/1.24, allocations: 10.6 MB / 0.5637 GB, free: 74.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/1.24, allocations: 6.75 kB / 0.5638 GB, free: 74.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007635/1.248, allocations: 3.746 MB / 0.5674 GB, free: 73.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/1.249, allocations: 474.7 kB / 0.5679 GB, free: 72.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005753/1.25, allocations: 30.25 kB / 0.5679 GB, free: 72.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/1.252, allocations: 76.89 kB / 0.568 GB, free: 72.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004817/1.252, allocations: 111 kB / 0.5681 GB, free: 72.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/1.252, allocations: 45.45 kB / 0.5681 GB, free: 72.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002812/1.255, allocations: 1.245 MB / 0.5693 GB, free: 72.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.255, allocations: 3.938 kB / 0.5693 GB, free: 72.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003505/1.259, allocations: 0.6335 MB / 0.57 GB, free: 72.05 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.0007639/1.26, allocations: 361.3 kB / 0.5703 GB, free: 71.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005368/1.265, allocations: 2.454 MB / 0.5727 GB, free: 70.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.265, allocations: 0 / 0.5727 GB, free: 70.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003155/1.268, allocations: 1.739 MB / 0.5744 GB, free: 69.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/1.271, allocations: 489.6 kB / 0.5749 GB, free: 69.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/1.284, allocations: 7.179 MB / 0.5819 GB, free: 65.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002635/1.287, allocations: 2.374 MB / 0.5842 GB, free: 64.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000758/1.288, allocations: 144.5 kB / 0.5843 GB, free: 64.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.678e-06/1.288, allocations: 4 kB / 0.5843 GB, free: 64.67 MB / 410.7 MB Notification: Performance of Templates: time 0.1156/1.403, allocations: 92.84 MB / 0.675 GB, free: 0.875 MB / 410.7 MB