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_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005948/0.000595, allocations: 12 kB / 264 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.09983, allocations: 44.51 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3762/0.4761, allocations: 105.5 MB / 413.9 MB, free: 13.13 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.4764, allocations: 97.56 kB / 414 MB, free: 13.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3138/0.7903, allocations: 88.2 MB / 0.4904 GB, free: 3.352 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.757e-06/0.7903, allocations: 0 / 0.4904 GB, free: 3.352 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000384/0.7907, allocations: 99.81 kB / 0.4905 GB, free: 3.254 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01518/0.8059, allocations: 4.058 MB / 0.4945 GB, free: 15.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.806, allocations: 8.031 kB / 0.4945 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00591/0.8119, allocations: 0.7913 MB / 0.4953 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.8248, allocations: 3.703 MB / 0.4989 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004156/0.8253, allocations: 271.6 kB / 0.4992 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001439/0.8267, allocations: 363.9 kB / 0.4995 GB, free: 9.941 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/0.842, allocations: 4.948 MB / 0.5043 GB, free: 4.863 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001384/0.8422, allocations: 4 kB / 0.5043 GB, free: 4.859 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001021/0.8432, allocations: 148 kB / 0.5045 GB, free: 4.715 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002143/0.8434, allocations: 163.2 kB / 0.5046 GB, free: 4.555 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01278/0.8562, allocations: 4.155 MB / 0.5087 GB, free: 404 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03929/0.8956, allocations: 15.98 MB / 0.5243 GB, free: 48 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2425/1.138, allocations: 7.778 MB / 0.5319 GB, free: 75.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01043/1.149, allocations: 4.074 MB / 0.5359 GB, free: 74.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/1.149, allocations: 51.75 kB / 0.5359 GB, free: 74.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 5.689e-06/1.149, allocations: 0 / 0.5359 GB, free: 74.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.02389/1.173, allocations: 8.242 MB / 0.544 GB, free: 73.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/1.173, allocations: 72.88 kB / 0.544 GB, free: 72.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004917/1.178, allocations: 1.888 MB / 0.5459 GB, free: 72.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003508/1.178, allocations: 53.02 kB / 0.5459 GB, free: 72.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/1.179, allocations: 1.516 MB / 0.5474 GB, free: 72.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007372/1.18, allocations: 0.5711 MB / 0.548 GB, free: 71.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/1.18, allocations: 39.19 kB / 0.548 GB, free: 71.85 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/1.18, allocations: 386 kB / 0.5484 GB, free: 71.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00241/1.183, allocations: 0.9557 MB / 0.5493 GB, free: 71.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00285/1.186, allocations: 1.417 MB / 0.5507 GB, free: 71.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002709/1.188, allocations: 1.173 MB / 0.5518 GB, free: 71.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.98e-05/1.188, allocations: 6.688 kB / 0.5519 GB, free: 71.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.007431/1.196, allocations: 3.191 MB / 0.555 GB, free: 70.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/1.196, allocations: 11.72 kB / 0.555 GB, free: 70.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-05/1.196, allocations: 11.81 kB / 0.555 GB, free: 70.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002521/1.199, allocations: 0.7396 MB / 0.5557 GB, free: 70.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/1.201, allocations: 375.2 kB / 0.5561 GB, free: 70.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01398/1.215, allocations: 10.64 MB / 0.5665 GB, free: 65.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002354/1.217, allocations: 98.72 kB / 0.5666 GB, free: 65.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000377/1.217, allocations: 71.78 kB / 0.5666 GB, free: 65.36 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 188 * 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 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003087/1.221, allocations: 1.21 MB / 0.5678 GB, free: 65.24 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006487/1.221, allocations: 236 kB / 0.568 GB, free: 65.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007277/1.228, allocations: 3.23 MB / 0.5712 GB, free: 64.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/1.229, allocations: 21.66 kB / 0.5712 GB, free: 64.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.609e-05/1.229, allocations: 14.16 kB / 0.5712 GB, free: 64.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-05/1.229, allocations: 9.656 kB / 0.5712 GB, free: 64.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01952/1.248, allocations: 6.683 MB / 0.5778 GB, free: 62.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/1.248, allocations: 0 / 0.5778 GB, free: 62.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/1.249, allocations: 195.9 kB / 0.5779 GB, free: 62.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003162/1.253, allocations: 0.9134 MB / 0.5788 GB, free: 61.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003/1.253, allocations: 42.62 kB / 0.5789 GB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01842/1.271, allocations: 15.1 MB / 0.5936 GB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.271, allocations: 3.469 kB / 0.5936 GB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009843/1.281, allocations: 4.738 MB / 0.5983 GB, free: 48.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001799/1.283, allocations: 0.5262 MB / 0.5988 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009458/1.284, allocations: 34.72 kB / 0.5988 GB, free: 47.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001978/1.286, allocations: 98.47 kB / 0.5989 GB, free: 47.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006593/1.287, allocations: 166.5 kB / 0.5991 GB, free: 47.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/1.287, allocations: 44.56 kB / 0.5991 GB, free: 47.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003273/1.29, allocations: 1.457 MB / 0.6005 GB, free: 47.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.066e-06/1.29, allocations: 0 / 0.6005 GB, free: 47.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00421/1.295, allocations: 0.7355 MB / 0.6012 GB, free: 47.14 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 94 * 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%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(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.0008848/1.296, allocations: 380.3 kB / 0.6016 GB, free: 47.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006552/1.302, allocations: 3.145 MB / 0.6047 GB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.734e-06/1.302, allocations: 6.562 kB / 0.6047 GB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004667/1.307, allocations: 2.312 MB / 0.6069 GB, free: 44.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003826/1.311, allocations: 0.5962 MB / 0.6075 GB, free: 44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01617/1.327, allocations: 8.198 MB / 0.6155 GB, free: 39.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004028/1.331, allocations: 2.695 MB / 0.6182 GB, free: 38.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008622/1.332, allocations: 147.5 kB / 0.6183 GB, free: 38.28 MB / 410.7 MB Notification: Performance of SimCode: time 2.122e-06/1.332, allocations: 0 / 0.6183 GB, free: 38.28 MB / 410.7 MB Notification: Performance of Templates: time 0.4154/1.747, allocations: 143 MB / 0.758 GB, free: 47.97 MB / 410.7 MB