Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004033/0.0004035, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09653, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4735/0.5701, allocations: 103.7 MB / 412.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/0.5705, allocations: 98.19 kB / 412.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3274/0.8979, allocations: 80.23 MB / 493 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.8979, allocations: 0 / 493 MB, free: 11.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005559/0.8985, allocations: 71.94 kB / 493.1 MB, free: 11.19 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.02079/0.9193, allocations: 3.533 MB / 496.6 MB, free: 7.586 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.9194, allocations: 8.031 kB / 496.6 MB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006603/0.926, allocations: 0.7335 MB / 497.4 MB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01422/0.9403, allocations: 3.371 MB / 0.489 GB, free: 3.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004417/0.9408, allocations: 234.2 kB / 0.4892 GB, free: 3.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001739/0.9426, allocations: 315.9 kB / 0.4895 GB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01623/0.9589, allocations: 4.204 MB / 0.4936 GB, free: 14.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001581/0.9591, allocations: 3.906 kB / 0.4936 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008244/0.9599, allocations: 132 kB / 0.4938 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002313/0.9602, allocations: 146.2 kB / 0.4939 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.9737, allocations: 3.456 MB / 0.4973 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04296/1.017, allocations: 13.56 MB / 0.5105 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01848/1.035, allocations: 6.889 MB / 0.5172 GB, free: 5.094 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01206/1.047, allocations: 3.262 MB / 0.5204 GB, free: 1.746 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.21e-05/1.048, allocations: 51.81 kB / 0.5205 GB, free: 1.688 MB / 410.7 MB Notification: Performance of pre-optimization done (n=130): time 5.43e-06/1.048, allocations: 0 / 0.5205 GB, free: 1.688 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.3693/1.417, allocations: 6.786 MB / 0.5271 GB, free: 86.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/1.417, allocations: 74.84 kB / 0.5272 GB, free: 86.78 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004955/1.422, allocations: 1.816 MB / 0.529 GB, free: 86.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004014/1.422, allocations: 53.48 kB / 0.529 GB, free: 86.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/1.424, allocations: 1.347 MB / 0.5303 GB, free: 86.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007385/1.424, allocations: 0.5106 MB / 0.5308 GB, free: 85.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/1.425, allocations: 33.84 kB / 0.5309 GB, free: 85.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/1.425, allocations: 384.8 kB / 0.5312 GB, free: 85.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/1.427, allocations: 0.7818 MB / 0.532 GB, free: 85.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002298/1.429, allocations: 1.229 MB / 0.5332 GB, free: 84.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/1.432, allocations: 0.9988 MB / 0.5342 GB, free: 84.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.718e-05/1.432, allocations: 8.219 kB / 0.5342 GB, free: 84.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007179/1.439, allocations: 2.565 MB / 0.5367 GB, free: 84.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/1.439, allocations: 17.02 kB / 0.5367 GB, free: 84.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.084e-05/1.439, allocations: 13.84 kB / 0.5367 GB, free: 84.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/1.441, allocations: 0.4989 MB / 0.5372 GB, free: 84.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003146/1.444, allocations: 400.8 kB / 0.5376 GB, free: 84.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/1.457, allocations: 6.543 MB / 0.544 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002609/1.459, allocations: 79.78 kB / 0.544 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/1.46, allocations: 77.14 kB / 0.5441 GB, free: 82.12 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.002871/1.463, allocations: 1.047 MB / 0.5451 GB, free: 82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/1.463, allocations: 203.9 kB / 0.5453 GB, free: 81.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006506/1.47, allocations: 2.558 MB / 0.5478 GB, free: 81.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.077e-05/1.47, allocations: 18.83 kB / 0.5478 GB, free: 81.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/1.47, allocations: 12.28 kB / 0.5479 GB, free: 81.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/1.47, allocations: 9.281 kB / 0.5479 GB, free: 81.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/1.484, allocations: 5.66 MB / 0.5534 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/1.484, allocations: 3.344 kB / 0.5534 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/1.486, allocations: 228.3 kB / 0.5536 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/1.488, allocations: 0.4988 MB / 0.5541 GB, free: 80.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001717/1.488, allocations: 32.75 kB / 0.5541 GB, free: 80.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/1.502, allocations: 10.61 MB / 0.5645 GB, free: 74.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.502, allocations: 0 / 0.5645 GB, free: 74.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008955/1.511, allocations: 3.659 MB / 0.5681 GB, free: 72.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001609/1.513, allocations: 464.2 kB / 0.5685 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006202/1.513, allocations: 38.45 kB / 0.5685 GB, free: 72.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/1.515, allocations: 73.06 kB / 0.5686 GB, free: 71.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004162/1.515, allocations: 112.6 kB / 0.5687 GB, free: 71.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.516, allocations: 48.02 kB / 0.5688 GB, free: 71.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002763/1.518, allocations: 1.25 MB / 0.57 GB, free: 71.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.643e-06/1.518, allocations: 0 / 0.57 GB, free: 71.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003694/1.522, allocations: 0.6335 MB / 0.5706 GB, free: 71.41 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.000822/1.523, allocations: 356 kB / 0.5709 GB, free: 71.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006436/1.529, allocations: 2.449 MB / 0.5733 GB, free: 70.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/1.529, allocations: 4.141 kB / 0.5733 GB, free: 70.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004068/1.534, allocations: 1.74 MB / 0.575 GB, free: 69.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003876/1.538, allocations: 488 kB / 0.5755 GB, free: 69.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02266/1.56, allocations: 7.184 MB / 0.5825 GB, free: 65.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005306/1.566, allocations: 2.374 MB / 0.5848 GB, free: 64.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001316/1.567, allocations: 141.3 kB / 0.585 GB, free: 64 MB / 410.7 MB Notification: Performance of SimCode: time 1.723e-06/1.567, allocations: 4 kB / 0.585 GB, free: 64 MB / 410.7 MB Notification: Performance of Templates: time 0.4757/2.043, allocations: 92.84 MB / 0.6756 GB, free: 83.31 MB / 410.7 MB