Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.845e-05/3.864e-05, allocations: 7.984 kB / 228.8 MB, free: 15.44 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2125, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.5764, allocations: 99.65 MB / 367.2 MB, free: 79.53 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.5767, allocations: 89.3 kB / 367.3 MB, free: 79.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1803/0.757, allocations: 51.25 MB / 418.6 MB, free: 28.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.166e-06/0.757, allocations: 4 kB / 418.6 MB, free: 28.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002233/0.7572, allocations: 67.94 kB / 418.7 MB, free: 28.5 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006348/0.7636, allocations: 2.546 MB / 421.2 MB, free: 25.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.7637, allocations: 15.98 kB / 421.2 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/0.7652, allocations: 352 kB / 421.6 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004216/0.7694, allocations: 1.72 MB / 423.3 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/0.7696, allocations: 196.9 kB / 423.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006653/0.7703, allocations: 247.9 kB / 423.7 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007263/0.7776, allocations: 3.194 MB / 426.9 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.7778, allocations: 8 kB / 426.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003466/0.7781, allocations: 115.9 kB / 427 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.7783, allocations: 116.9 kB / 427.1 MB, free: 19.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006425/0.7847, allocations: 2.515 MB / 429.7 MB, free: 17.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02121/0.8059, allocations: 10.36 MB / 440 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/0.8084, allocations: 1.39 MB / 441.4 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.8098, allocations: 0.7418 MB / 442.2 MB, free: 4.305 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000313/0.8101, allocations: 134 kB / 442.3 MB, free: 4.152 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.8102, allocations: 43.56 kB / 442.3 MB, free: 4.102 MB / 298.7 MB Notification: Performance of pre-optimization done (n=101): time 4.497e-06/0.8102, allocations: 4 kB / 442.3 MB, free: 4.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=129): time 0.01745/0.8276, allocations: 6.118 MB / 448.4 MB, free: 13.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.8277, allocations: 64.72 kB / 448.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003257/0.831, allocations: 1.408 MB / 449.9 MB, free: 12.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002671/0.8313, allocations: 49.7 kB / 450 MB, free: 12.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.8325, allocations: 1.185 MB / 451.2 MB, free: 11.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006539/0.8332, allocations: 445.6 kB / 451.6 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.8333, allocations: 36 kB / 451.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000251/0.8336, allocations: 378.8 kB / 452 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001815/0.8354, allocations: 0.7654 MB / 452.8 MB, free: 9.562 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/0.8379, allocations: 1.285 MB / 454 MB, free: 8.047 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002317/0.8402, allocations: 1 MB / 455 MB, free: 7.047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.705e-05/0.8403, allocations: 7.938 kB / 455.1 MB, free: 7.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.005962/0.8462, allocations: 2.362 MB / 457.4 MB, free: 4.656 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.282e-05/0.8463, allocations: 13.09 kB / 457.4 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-05/0.8464, allocations: 19.95 kB / 457.4 MB, free: 4.625 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000867/0.8473, allocations: 243.7 kB / 457.7 MB, free: 4.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/0.8496, allocations: 439.3 kB / 458.1 MB, free: 3.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003758/0.8534, allocations: 2.994 MB / 461.1 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.8555, allocations: 127.8 kB / 461.2 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002735/0.8558, allocations: 72 kB / 461.3 MB, free: 488 kB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004397/0.8562, allocations: 216.2 kB / 461.5 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004754/0.8567, allocations: 193.6 kB / 461.7 MB, free: 68 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004982/0.8617, allocations: 2.066 MB / 463.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.032e-05/0.8618, allocations: 12 kB / 463.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.8618, allocations: 4 kB / 463.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.652e-05/0.8618, allocations: 11.91 kB / 463.8 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.874, allocations: 4.752 MB / 468.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.8741, allocations: 4 kB / 468.6 MB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/0.8758, allocations: 283.5 kB / 468.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007967/0.8766, allocations: 207.5 kB / 469 MB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002037/0.8768, allocations: 24 kB / 469.1 MB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003574/0.8804, allocations: 2.959 MB / 472 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.8805, allocations: 12.05 kB / 472 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007024/0.8875, allocations: 3.321 MB / 475.3 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.8889, allocations: 422.7 kB / 475.8 MB, free: 1.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003417/0.8893, allocations: 27.98 kB / 475.8 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.8905, allocations: 95.94 kB / 475.9 MB, free: 1.359 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/0.8908, allocations: 92.78 kB / 476 MB, free: 1.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/0.8909, allocations: 35.98 kB / 476 MB, free: 1.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002348/0.8933, allocations: 1.067 MB / 477.1 MB, free: 176 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.006e-06/0.8933, allocations: 0 / 477.1 MB, free: 176 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.002808/0.8961, allocations: 0.5156 MB / 477.6 MB, free: 15.65 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008403/0.897, allocations: 407.2 kB / 478 MB, free: 15.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005098/0.9021, allocations: 2.352 MB / 480.3 MB, free: 12.83 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.07e-06/0.9021, allocations: 0 / 480.3 MB, free: 12.83 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002766/0.9049, allocations: 1.351 MB / 481.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/0.9077, allocations: 439 kB / 482.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009793/0.9176, allocations: 3.872 MB / 486 MB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002811/0.9204, allocations: 2.019 MB / 488 MB, free: 4.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008243/0.9213, allocations: 139.4 kB / 488.1 MB, free: 4.844 MB / 346.7 MB Notification: Performance of SimCode: time 1.99e-06/0.9213, allocations: 0 / 488.1 MB, free: 4.844 MB / 346.7 MB Notification: Performance of Templates: time 0.293/1.214, allocations: 77.75 MB / 0.5526 GB, free: 42.74 MB / 346.7 MB