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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003474, allocations: 8 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.09492, allocations: 44.5 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4375/0.5325, allocations: 113.2 MB / 421.8 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.5329, allocations: 100 kB / 421.8 MB, free: 8.078 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7691/1.302, allocations: 133.3 MB / 0.5421 GB, free: 62.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.846e-06/1.302, allocations: 0 / 0.5421 GB, free: 62.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005419/1.303, allocations: 128.3 kB / 0.5422 GB, free: 62.21 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.02139/1.324, allocations: 5.278 MB / 0.5474 GB, free: 60.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/1.324, allocations: 11.5 kB / 0.5474 GB, free: 60.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002725/1.327, allocations: 0.6817 MB / 0.5481 GB, free: 60.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007083/1.334, allocations: 0.9778 MB / 0.549 GB, free: 60.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01471/1.349, allocations: 4.516 MB / 0.5534 GB, free: 59.35 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003841/1.349, allocations: 363.2 kB / 0.5538 GB, free: 59.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001728/1.351, allocations: 491 kB / 0.5543 GB, free: 59.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01855/1.369, allocations: 6.726 MB / 0.5608 GB, free: 58.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001566/1.37, allocations: 2.625 kB / 0.5608 GB, free: 58.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008064/1.37, allocations: 205.8 kB / 0.561 GB, free: 58.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002712/1.371, allocations: 241.8 kB / 0.5612 GB, free: 58.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/1.387, allocations: 5.582 MB / 0.5667 GB, free: 58.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05216/1.439, allocations: 21 MB / 0.5872 GB, free: 53.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01353/1.453, allocations: 9.947 MB / 0.5969 GB, free: 44.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01434/1.467, allocations: 5.481 MB / 0.6023 GB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/1.467, allocations: 61.5 kB / 0.6023 GB, free: 42.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 4.629e-06/1.467, allocations: 0 / 0.6023 GB, free: 42.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=234): time 0.02919/1.497, allocations: 10.03 MB / 0.6121 GB, free: 37.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/1.497, allocations: 81.66 kB / 0.6122 GB, free: 36.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005813/1.503, allocations: 2.633 MB / 0.6148 GB, free: 35.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005354/1.503, allocations: 64.95 kB / 0.6148 GB, free: 35.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/1.505, allocations: 2.002 MB / 0.6168 GB, free: 34.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/1.506, allocations: 0.7784 MB / 0.6176 GB, free: 33.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/1.506, allocations: 57.44 kB / 0.6176 GB, free: 33.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001731/1.506, allocations: 413.1 kB / 0.618 GB, free: 33.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/1.509, allocations: 1.301 MB / 0.6193 GB, free: 32.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003638/1.513, allocations: 1.879 MB / 0.6211 GB, free: 31.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004027/1.517, allocations: 1.6 MB / 0.6227 GB, free: 30.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/1.517, allocations: 3.812 kB / 0.6227 GB, free: 30.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=327) (initialization): time 0.0103/1.527, allocations: 4.041 MB / 0.6266 GB, free: 29.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.671e-05/1.527, allocations: 15.5 kB / 0.6266 GB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.474e-05/1.528, allocations: 17.56 kB / 0.6267 GB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/1.53, allocations: 0.6458 MB / 0.6273 GB, free: 29.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004384/1.535, allocations: 0.5678 MB / 0.6278 GB, free: 29.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01412/1.549, allocations: 10.21 MB / 0.6378 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003761/1.552, allocations: 112.2 kB / 0.6379 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006566/1.553, allocations: 105.7 kB / 0.638 GB, free: 21.27 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.004592/1.558, allocations: 1.604 MB / 0.6396 GB, free: 20.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001078/1.559, allocations: 322.5 kB / 0.6399 GB, free: 20.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/1.569, allocations: 4.001 MB / 0.6438 GB, free: 18.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/1.569, allocations: 24 kB / 0.6438 GB, free: 18.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/1.569, allocations: 12 kB / 0.6438 GB, free: 18.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.742e-05/1.57, allocations: 10.59 kB / 0.6438 GB, free: 18.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02175/1.591, allocations: 8.723 MB / 0.6524 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/1.591, allocations: 0 / 0.6524 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003037/1.594, allocations: 363.7 kB / 0.6527 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003494/1.598, allocations: 0.815 MB / 0.6535 GB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003919/1.598, allocations: 62.66 kB / 0.6536 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02193/1.62, allocations: 14.74 MB / 0.668 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.62, allocations: 8.062 kB / 0.668 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01594/1.636, allocations: 6.002 MB / 0.6738 GB, free: 6.164 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002703/1.639, allocations: 0.7059 MB / 0.6745 GB, free: 5.512 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.64, allocations: 52 kB / 0.6746 GB, free: 5.461 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003049/1.643, allocations: 130.4 kB / 0.6747 GB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007575/1.644, allocations: 202.8 kB / 0.6749 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002771/1.644, allocations: 63.66 kB / 0.6749 GB, free: 5.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005245/1.649, allocations: 2.027 MB / 0.6769 GB, free: 3.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.649, allocations: 0 / 0.6769 GB, free: 3.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005486/1.655, allocations: 0.9957 MB / 0.6779 GB, free: 2.488 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.3084/1.963, allocations: 7.376 MB / 0.6851 GB, free: 69.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01025/1.974, allocations: 3.957 MB / 0.689 GB, free: 68.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/1.974, allocations: 1.312 kB / 0.689 GB, free: 68.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006579/1.98, allocations: 2.692 MB / 0.6916 GB, free: 68.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006716/1.987, allocations: 0.8607 MB / 0.6924 GB, free: 68.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07509/2.062, allocations: 39.5 MB / 0.731 GB, free: 46.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004714/2.067, allocations: 3.424 MB / 0.7344 GB, free: 46.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004065/2.071, allocations: 1.847 MB / 0.7362 GB, free: 46.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/2.071, allocations: 0 / 0.7362 GB, free: 46.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.928/6.999, allocations: 219.8 MB / 0.9508 GB, free: 41.93 MB / 442.7 MB