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_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadModel(Modelica): time 2/2, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003808, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08295/0.08336, allocations: 44.51 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3781/0.4615, allocations: 104.7 MB / 413.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.4618, allocations: 92.58 kB / 413.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2837/0.7456, allocations: 80.53 MB / 493.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.701e-06/0.7456, allocations: 3.938 kB / 493.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000303/0.7459, allocations: 75.94 kB / 493.9 MB, free: 11.79 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.0133/0.7592, allocations: 3.525 MB / 497.4 MB, free: 8.191 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.7593, allocations: 8.031 kB / 497.4 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005656/0.765, allocations: 0.7334 MB / 498.1 MB, free: 7.445 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.7771, allocations: 3.332 MB / 0.4897 GB, free: 4.055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003909/0.7775, allocations: 242.5 kB / 0.4899 GB, free: 3.816 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001227/0.7788, allocations: 319.9 kB / 0.4902 GB, free: 3.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01252/0.7913, allocations: 4.212 MB / 0.4944 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.7915, allocations: 3.906 kB / 0.4944 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000571/0.792, allocations: 139.9 kB / 0.4945 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002083/0.7923, allocations: 142.4 kB / 0.4946 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01049/0.8028, allocations: 3.43 MB / 0.498 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0349/0.8377, allocations: 13.91 MB / 0.5116 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/0.8478, allocations: 6.671 MB / 0.5181 GB, free: 5.664 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008812/0.8567, allocations: 3.401 MB / 0.5214 GB, free: 2.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.888e-05/0.8568, allocations: 51.88 kB / 0.5215 GB, free: 2.121 MB / 410.7 MB Notification: Performance of pre-optimization done (n=152): time 5.478e-06/0.8568, allocations: 0 / 0.5215 GB, free: 2.121 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.2479/1.105, allocations: 6.468 MB / 0.5278 GB, free: 85.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/1.105, allocations: 69.84 kB / 0.5278 GB, free: 85.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003443/1.108, allocations: 1.52 MB / 0.5293 GB, free: 85.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002937/1.109, allocations: 54.27 kB / 0.5294 GB, free: 85.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009041/1.109, allocations: 1.348 MB / 0.5307 GB, free: 84.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006708/1.11, allocations: 0.5201 MB / 0.5312 GB, free: 84.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/1.11, allocations: 37.75 kB / 0.5312 GB, free: 84.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/1.111, allocations: 385.8 kB / 0.5316 GB, free: 84.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/1.112, allocations: 0.7229 MB / 0.5323 GB, free: 84.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/1.115, allocations: 1.181 MB / 0.5335 GB, free: 83.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002281/1.117, allocations: 0.9443 MB / 0.5344 GB, free: 83.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.784e-05/1.117, allocations: 4.094 kB / 0.5344 GB, free: 83.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006806/1.124, allocations: 2.581 MB / 0.5369 GB, free: 83.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/1.124, allocations: 12.3 kB / 0.5369 GB, free: 83.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.65e-05/1.124, allocations: 13.88 kB / 0.5369 GB, free: 83.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/1.126, allocations: 455.6 kB / 0.5374 GB, free: 83.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/1.128, allocations: 373.3 kB / 0.5377 GB, free: 83.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/1.14, allocations: 9.8 MB / 0.5473 GB, free: 77.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/1.142, allocations: 82.64 kB / 0.5474 GB, free: 77.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003409/1.142, allocations: 78.44 kB / 0.5474 GB, free: 77.01 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002735/1.145, allocations: 1.002 MB / 0.5484 GB, free: 76.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005956/1.146, allocations: 196.5 kB / 0.5486 GB, free: 76.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009234/1.155, allocations: 2.539 MB / 0.5511 GB, free: 76.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.638e-05/1.155, allocations: 16.27 kB / 0.5511 GB, free: 76.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-05/1.155, allocations: 11.59 kB / 0.5511 GB, free: 76.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-05/1.155, allocations: 7.406 kB / 0.5511 GB, free: 76.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02132/1.177, allocations: 5.459 MB / 0.5565 GB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-05/1.177, allocations: 7.359 kB / 0.5565 GB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/1.179, allocations: 188.1 kB / 0.5566 GB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003762/1.183, allocations: 0.6145 MB / 0.5572 GB, free: 75.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003985/1.183, allocations: 44.19 kB / 0.5573 GB, free: 75.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02659/1.21, allocations: 14.3 MB / 0.5712 GB, free: 66.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.139e-05/1.21, allocations: 3.656 kB / 0.5712 GB, free: 66.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/1.224, allocations: 3.643 MB / 0.5748 GB, free: 64.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/1.225, allocations: 451.7 kB / 0.5752 GB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003713/1.225, allocations: 38.88 kB / 0.5753 GB, free: 64.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/1.227, allocations: 73.17 kB / 0.5753 GB, free: 64.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/1.227, allocations: 137.2 kB / 0.5755 GB, free: 64.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/1.227, allocations: 41.83 kB / 0.5755 GB, free: 64.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002171/1.229, allocations: 1.174 MB / 0.5767 GB, free: 63.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.298e-06/1.229, allocations: 0 / 0.5767 GB, free: 63.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003446/1.233, allocations: 0.6442 MB / 0.5773 GB, free: 63.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 86 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007067/1.234, allocations: 357.7 kB / 0.5776 GB, free: 63.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005155/1.239, allocations: 2.649 MB / 0.5802 GB, free: 62.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/1.239, allocations: 0 / 0.5802 GB, free: 62.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00389/1.243, allocations: 2.017 MB / 0.5822 GB, free: 60.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00316/1.246, allocations: 0.5031 MB / 0.5827 GB, free: 60.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/1.26, allocations: 7.218 MB / 0.5897 GB, free: 56.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003505/1.264, allocations: 2.328 MB / 0.592 GB, free: 55.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007018/1.264, allocations: 136.9 kB / 0.5921 GB, free: 55.46 MB / 410.7 MB Notification: Performance of SimCode: time 2.178e-06/1.264, allocations: 0 / 0.5921 GB, free: 55.46 MB / 410.7 MB Notification: Performance of Templates: time 0.4821/1.746, allocations: 137.3 MB / 0.7262 GB, free: 78.67 MB / 410.7 MB