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_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005367/0.000537, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1285, allocations: 44.5 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5769/0.7054, allocations: 113.2 MB / 422.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/0.7058, allocations: 96.34 kB / 422.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8614/1.567, allocations: 133.3 MB / 0.5425 GB, free: 61.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.567, allocations: 2.75 kB / 0.5425 GB, free: 61.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006542/1.568, allocations: 129.6 kB / 0.5427 GB, free: 61.98 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02366/1.592, allocations: 5.273 MB / 0.5478 GB, free: 60.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/1.592, allocations: 7.844 kB / 0.5478 GB, free: 60.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007501/1.599, allocations: 0.9768 MB / 0.5488 GB, free: 59.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01613/1.615, allocations: 4.526 MB / 0.5532 GB, free: 59.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005357/1.616, allocations: 370.4 kB / 0.5536 GB, free: 59.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00222/1.618, allocations: 486.8 kB / 0.554 GB, free: 59.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02336/1.642, allocations: 6.766 MB / 0.5606 GB, free: 58.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002553/1.642, allocations: 0 / 0.5606 GB, free: 58.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001692/1.644, allocations: 213.5 kB / 0.5608 GB, free: 58.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003102/1.644, allocations: 236.3 kB / 0.5611 GB, free: 58.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/1.662, allocations: 5.581 MB / 0.5665 GB, free: 58.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05731/1.72, allocations: 21.01 MB / 0.587 GB, free: 53.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01464/1.734, allocations: 9.933 MB / 0.5967 GB, free: 45.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/1.751, allocations: 5.478 MB / 0.6021 GB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.871e-05/1.751, allocations: 60.28 kB / 0.6021 GB, free: 42.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 5.741e-06/1.751, allocations: 0 / 0.6021 GB, free: 42.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=234): time 0.03284/1.784, allocations: 10.03 MB / 0.6119 GB, free: 37.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/1.784, allocations: 76.03 kB / 0.612 GB, free: 37.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007219/1.792, allocations: 2.948 MB / 0.6149 GB, free: 36.08 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005855/1.792, allocations: 68.64 kB / 0.6149 GB, free: 36.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/1.794, allocations: 1.991 MB / 0.6169 GB, free: 34.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001113/1.795, allocations: 0.7861 MB / 0.6177 GB, free: 33.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/1.795, allocations: 46.88 kB / 0.6177 GB, free: 33.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002058/1.796, allocations: 417 kB / 0.6181 GB, free: 33.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003665/1.799, allocations: 1.306 MB / 0.6194 GB, free: 32.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004186/1.803, allocations: 1.887 MB / 0.6212 GB, free: 31.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004342/1.808, allocations: 1.598 MB / 0.6228 GB, free: 31.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-05/1.808, allocations: 6.344 kB / 0.6228 GB, free: 31.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=327) (initialization): time 0.01166/1.82, allocations: 4.046 MB / 0.6267 GB, free: 29.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/1.82, allocations: 11.91 kB / 0.6267 GB, free: 29.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-05/1.82, allocations: 25.5 kB / 0.6268 GB, free: 29.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002821/1.823, allocations: 0.6456 MB / 0.6274 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004674/1.827, allocations: 0.5626 MB / 0.6279 GB, free: 29.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01518/1.843, allocations: 10.22 MB / 0.6379 GB, free: 21.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004113/1.847, allocations: 115.2 kB / 0.638 GB, free: 21.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007468/1.848, allocations: 99.53 kB / 0.6381 GB, free: 21.36 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (277): * Single equations (assignments): 272 * 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: 4 * 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: 4 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005406/1.853, allocations: 1.605 MB / 0.6397 GB, free: 20.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.854, allocations: 315.8 kB / 0.64 GB, free: 20.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01247/1.867, allocations: 4.008 MB / 0.6439 GB, free: 18.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.309e-05/1.867, allocations: 20 kB / 0.6439 GB, free: 18.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.638e-05/1.867, allocations: 12 kB / 0.6439 GB, free: 18.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.596e-05/1.867, allocations: 8.672 kB / 0.644 GB, free: 18.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02579/1.893, allocations: 8.723 MB / 0.6525 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-05/1.893, allocations: 0 / 0.6525 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003267/1.896, allocations: 363.9 kB / 0.6528 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003793/1.9, allocations: 0.8239 MB / 0.6536 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005519/1.9, allocations: 55.41 kB / 0.6537 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0237/1.924, allocations: 14.76 MB / 0.6681 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.924, allocations: 0 / 0.6681 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01755/1.942, allocations: 5.85 MB / 0.6738 GB, free: 6.707 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003023/1.945, allocations: 0.6969 MB / 0.6745 GB, free: 6.062 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001526/1.946, allocations: 59.03 kB / 0.6745 GB, free: 6.012 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00375/1.95, allocations: 125.4 kB / 0.6747 GB, free: 5.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009821/1.951, allocations: 194.1 kB / 0.6748 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003158/1.952, allocations: 75.38 kB / 0.6749 GB, free: 5.723 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006257/1.958, allocations: 2.027 MB / 0.6769 GB, free: 4.023 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.323e-06/1.958, allocations: 0 / 0.6769 GB, free: 4.023 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006492/1.964, allocations: 0.9881 MB / 0.6779 GB, free: 3.039 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001517/1.966, allocations: 441.2 kB / 0.6783 GB, free: 2.672 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.3681/2.334, allocations: 3.959 MB / 0.6821 GB, free: 70.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/2.334, allocations: 2.156 kB / 0.6821 GB, free: 70.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00755/2.342, allocations: 2.696 MB / 0.6848 GB, free: 69.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007536/2.349, allocations: 0.8593 MB / 0.6856 GB, free: 69.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03208/2.382, allocations: 11.2 MB / 0.6966 GB, free: 65.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008105/2.39, allocations: 3.428 MB / 0.6999 GB, free: 64.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001649/2.391, allocations: 213.8 kB / 0.7001 GB, free: 64.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/2.391, allocations: 0 / 0.7001 GB, free: 64.39 MB / 426.7 MB Notification: Performance of Templates: time 0.7549/3.146, allocations: 193.3 MB / 0.8889 GB, free: 83.76 MB / 442.7 MB