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.SMPM_VoltageSource.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.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 2/2, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003864/0.0003866, allocations: 16 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1054, allocations: 44.5 MB / 309 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.5787, allocations: 113.1 MB / 422.1 MB, free: 8.285 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.5791, allocations: 95.48 kB / 422.2 MB, free: 8.273 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3404/0.9194, allocations: 80.15 MB / 0.4906 GB, free: 1.973 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.9195, allocations: 0 / 0.4906 GB, free: 1.973 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004087/0.9199, allocations: 95.88 kB / 0.4907 GB, free: 1.879 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.02182/0.9418, allocations: 3.819 MB / 0.4944 GB, free: 13.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.113e-05/0.9419, allocations: 16.03 kB / 0.4944 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007137/0.949, allocations: 0.6435 MB / 0.4951 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01662/0.9657, allocations: 3.398 MB / 0.4984 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000397/0.9661, allocations: 258.9 kB / 0.4986 GB, free: 9.617 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001383/0.9675, allocations: 343.9 kB / 0.4989 GB, free: 9.281 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.9829, allocations: 4.401 MB / 0.5032 GB, free: 4.738 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001654/0.9831, allocations: 11.98 kB / 0.5033 GB, free: 4.727 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007206/0.9838, allocations: 140 kB / 0.5034 GB, free: 4.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002597/0.9841, allocations: 162.8 kB / 0.5035 GB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/0.9967, allocations: 3.505 MB / 0.507 GB, free: 0.918 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04279/1.04, allocations: 14.55 MB / 0.5212 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3961/1.436, allocations: 5.364 MB / 0.5264 GB, free: 79.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01257/1.448, allocations: 3.274 MB / 0.5296 GB, free: 78.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.055e-05/1.448, allocations: 48.56 kB / 0.5297 GB, free: 78.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 8.506e-06/1.449, allocations: 0 / 0.5297 GB, free: 78.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=164): time 0.0264/1.475, allocations: 7.077 MB / 0.5366 GB, free: 77.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/1.475, allocations: 74.19 kB / 0.5366 GB, free: 77.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005573/1.481, allocations: 2.064 MB / 0.5386 GB, free: 77.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004705/1.481, allocations: 51.58 kB / 0.5387 GB, free: 77.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001456/1.483, allocations: 1.54 MB / 0.5402 GB, free: 76.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009325/1.484, allocations: 0.5551 MB / 0.5407 GB, free: 76.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/1.484, allocations: 41.25 kB / 0.5408 GB, free: 76.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/1.484, allocations: 394.4 kB / 0.5412 GB, free: 76.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002568/1.487, allocations: 0.853 MB / 0.542 GB, free: 76.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003212/1.49, allocations: 1.463 MB / 0.5434 GB, free: 75.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003124/1.493, allocations: 1.116 MB / 0.5445 GB, free: 75.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/1.493, allocations: 5.5 kB / 0.5445 GB, free: 75.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007715/1.501, allocations: 2.829 MB / 0.5473 GB, free: 75.33 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.449e-05/1.501, allocations: 11.53 kB / 0.5473 GB, free: 75.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.49e-05/1.501, allocations: 20.16 kB / 0.5473 GB, free: 75.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/1.503, allocations: 430.6 kB / 0.5477 GB, free: 75.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003589/1.506, allocations: 472.8 kB / 0.5482 GB, free: 75.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009754/1.516, allocations: 5.708 MB / 0.5537 GB, free: 72.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003445/1.52, allocations: 119.5 kB / 0.5539 GB, free: 72.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004817/1.52, allocations: 88.89 kB / 0.5539 GB, free: 72.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 225 * 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: 2 * 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: 2 {(5,72.0%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003663/1.524, allocations: 1.07 MB / 0.555 GB, free: 72.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008416/1.525, allocations: 227.1 kB / 0.5552 GB, free: 72.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006929/1.532, allocations: 2.611 MB / 0.5578 GB, free: 72.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-05/1.532, allocations: 15.44 kB / 0.5578 GB, free: 72.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/1.532, allocations: 14.11 kB / 0.5578 GB, free: 72.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.269e-05/1.532, allocations: 11.38 kB / 0.5578 GB, free: 72.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.548, allocations: 6.097 MB / 0.5637 GB, free: 71.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/1.548, allocations: 3.312 kB / 0.5638 GB, free: 71.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/1.55, allocations: 251.1 kB / 0.564 GB, free: 71.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/1.552, allocations: 0.5482 MB / 0.5645 GB, free: 71.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003596/1.553, allocations: 36.97 kB / 0.5646 GB, free: 71.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01379/1.567, allocations: 8.473 MB / 0.5728 GB, free: 65.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.567, allocations: 4.875 kB / 0.5728 GB, free: 65.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009351/1.576, allocations: 3.86 MB / 0.5766 GB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00203/1.578, allocations: 0.502 MB / 0.5771 GB, free: 63.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007875/1.579, allocations: 38.34 kB / 0.5771 GB, free: 63.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002336/1.581, allocations: 83.34 kB / 0.5772 GB, free: 63.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000411/1.582, allocations: 122.3 kB / 0.5773 GB, free: 63.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/1.582, allocations: 45.78 kB / 0.5774 GB, free: 63.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003327/1.585, allocations: 1.4 MB / 0.5787 GB, free: 62.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.585, allocations: 2.719 kB / 0.5787 GB, free: 62.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003961/1.589, allocations: 0.6762 MB / 0.5794 GB, free: 62.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 118 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,63.9%) 23,(1,100.0%) 1,(3,88.9%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/1.59, allocations: 470.6 kB / 0.5799 GB, free: 62.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006825/1.597, allocations: 2.683 MB / 0.5825 GB, free: 61.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.597, allocations: 3.938 kB / 0.5825 GB, free: 61.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00461/1.602, allocations: 1.717 MB / 0.5842 GB, free: 60.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004121/1.606, allocations: 0.5074 MB / 0.5847 GB, free: 60.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/1.623, allocations: 7.734 MB / 0.5922 GB, free: 56.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/1.626, allocations: 2.472 MB / 0.5946 GB, free: 55.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.627, allocations: 175.7 kB / 0.5948 GB, free: 55.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/1.627, allocations: 0 / 0.5948 GB, free: 55.02 MB / 410.7 MB Notification: Performance of Templates: time 0.4358/2.063, allocations: 89.53 MB / 0.6822 GB, free: 78.44 MB / 410.7 MB