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_YD.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_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.899/1.899, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003713, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09582/0.09624, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4665/0.5628, allocations: 105.5 MB / 414.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004421/0.5633, allocations: 95.95 kB / 414.5 MB, free: 11.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3953/0.9586, allocations: 88.21 MB / 0.491 GB, free: 1.469 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.112e-06/0.9586, allocations: 0 / 0.491 GB, free: 1.469 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004854/0.9591, allocations: 95.81 kB / 0.4911 GB, free: 1.375 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.02012/0.9793, allocations: 4.054 MB / 0.495 GB, free: 13.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.9794, allocations: 8.031 kB / 0.495 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006995/0.9864, allocations: 0.8069 MB / 0.4958 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01503/1.001, allocations: 3.691 MB / 0.4994 GB, free: 8.684 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004932/1.002, allocations: 275.6 kB / 0.4997 GB, free: 8.414 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001759/1.004, allocations: 359.9 kB / 0.5 GB, free: 8.062 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/1.023, allocations: 4.972 MB / 0.5049 GB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001721/1.023, allocations: 4 kB / 0.5049 GB, free: 2.957 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001079/1.024, allocations: 151.9 kB / 0.505 GB, free: 2.809 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002455/1.024, allocations: 163.2 kB / 0.5052 GB, free: 2.648 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01534/1.04, allocations: 4.159 MB / 0.5092 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3554/1.395, allocations: 15.98 MB / 0.5248 GB, free: 75.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01321/1.408, allocations: 7.777 MB / 0.5324 GB, free: 70.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/1.422, allocations: 4.075 MB / 0.5364 GB, free: 69.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.648e-05/1.422, allocations: 51.84 kB / 0.5365 GB, free: 69.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 5.901e-06/1.422, allocations: 3.25 kB / 0.5365 GB, free: 69.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.03271/1.455, allocations: 8.235 MB / 0.5445 GB, free: 67.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/1.455, allocations: 73.02 kB / 0.5446 GB, free: 67.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006536/1.461, allocations: 2.118 MB / 0.5467 GB, free: 67.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000497/1.462, allocations: 52.95 kB / 0.5467 GB, free: 67.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/1.464, allocations: 1.523 MB / 0.5482 GB, free: 67.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009818/1.465, allocations: 0.5678 MB / 0.5487 GB, free: 66.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/1.465, allocations: 39.47 kB / 0.5488 GB, free: 66.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/1.465, allocations: 381.4 kB / 0.5491 GB, free: 66.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002984/1.468, allocations: 0.9559 MB / 0.5501 GB, free: 66.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003618/1.472, allocations: 1.425 MB / 0.5515 GB, free: 65.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003557/1.475, allocations: 1.174 MB / 0.5526 GB, free: 65.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.649e-05/1.475, allocations: 3.812 kB / 0.5526 GB, free: 65.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.009804/1.485, allocations: 3.197 MB / 0.5557 GB, free: 65.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/1.485, allocations: 11.38 kB / 0.5558 GB, free: 65.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.334e-05/1.485, allocations: 11.62 kB / 0.5558 GB, free: 65.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003126/1.488, allocations: 0.7375 MB / 0.5565 GB, free: 65.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/1.491, allocations: 374.1 kB / 0.5568 GB, free: 65.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02103/1.513, allocations: 10.63 MB / 0.5672 GB, free: 60.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004159/1.517, allocations: 96.91 kB / 0.5673 GB, free: 60.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005652/1.517, allocations: 75.56 kB / 0.5674 GB, free: 60.27 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.00371/1.521, allocations: 1.212 MB / 0.5686 GB, free: 60.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007957/1.522, allocations: 231.5 kB / 0.5688 GB, free: 60.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008761/1.531, allocations: 3.233 MB / 0.572 GB, free: 59.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/1.531, allocations: 20.94 kB / 0.572 GB, free: 59.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.733e-05/1.531, allocations: 9.812 kB / 0.572 GB, free: 59.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.744e-05/1.531, allocations: 7.688 kB / 0.572 GB, free: 59.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/1.549, allocations: 6.698 MB / 0.5785 GB, free: 58.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/1.549, allocations: 0 / 0.5785 GB, free: 58.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/1.551, allocations: 193.6 kB / 0.5787 GB, free: 58.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003844/1.555, allocations: 0.9223 MB / 0.5796 GB, free: 58.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000369/1.555, allocations: 37.97 kB / 0.5797 GB, free: 58.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02211/1.577, allocations: 15.09 MB / 0.5944 GB, free: 46.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.577, allocations: 3.25 kB / 0.5944 GB, free: 46.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01202/1.589, allocations: 4.632 MB / 0.5989 GB, free: 44.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002057/1.591, allocations: 0.5268 MB / 0.5994 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008341/1.592, allocations: 39.16 kB / 0.5995 GB, free: 44.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/1.594, allocations: 91.45 kB / 0.5996 GB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006577/1.595, allocations: 164.5 kB / 0.5997 GB, free: 44.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/1.595, allocations: 47.77 kB / 0.5998 GB, free: 44.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003674/1.599, allocations: 1.457 MB / 0.6012 GB, free: 43.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.599, allocations: 0 / 0.6012 GB, free: 43.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004822/1.604, allocations: 0.7489 MB / 0.6019 GB, free: 43.68 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.001176/1.605, allocations: 370 kB / 0.6023 GB, free: 43.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008248/1.613, allocations: 3.161 MB / 0.6054 GB, free: 42.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/1.613, allocations: 0 / 0.6054 GB, free: 42.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005895/1.619, allocations: 2.311 MB / 0.6076 GB, free: 40.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005252/1.625, allocations: 0.5952 MB / 0.6082 GB, free: 40.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02065/1.645, allocations: 8.196 MB / 0.6162 GB, free: 36.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003641/1.649, allocations: 2.69 MB / 0.6188 GB, free: 34.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/1.65, allocations: 148.2 kB / 0.619 GB, free: 34.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.644e-06/1.65, allocations: 4 kB / 0.619 GB, free: 34.84 MB / 410.7 MB Notification: Performance of Templates: time 0.5116/2.162, allocations: 143 MB / 0.7587 GB, free: 42.78 MB / 410.7 MB