Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.042/2.042, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003552, allocations: 11.98 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.0954, allocations: 44.51 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4662/0.5617, allocations: 110.1 MB / 419.1 MB, free: 9.711 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.5621, allocations: 95.33 kB / 419.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3385/0.9005, allocations: 74.73 MB / 494 MB, free: 9.867 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.9006, allocations: 0 / 494 MB, free: 9.867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003605/0.901, allocations: 87.81 kB / 494.1 MB, free: 9.781 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.0154/0.9164, allocations: 3.469 MB / 497.5 MB, free: 6.238 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.9164, allocations: 8.031 kB / 497.5 MB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00461/0.9211, allocations: 0.5852 MB / 498.1 MB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.934, allocations: 3.138 MB / 0.4895 GB, free: 2.445 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/0.9344, allocations: 230.3 kB / 0.4897 GB, free: 2.219 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001217/0.9356, allocations: 315.9 kB / 0.49 GB, free: 1.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/0.9481, allocations: 3.967 MB / 0.4939 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/0.9483, allocations: 19.84 kB / 0.4939 GB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000512/0.9489, allocations: 132 kB / 0.494 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000224/0.9491, allocations: 138.2 kB / 0.4942 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/0.96, allocations: 3.144 MB / 0.4972 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03802/0.9981, allocations: 13.4 MB / 0.5103 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007366/1.006, allocations: 3.95 MB / 0.5142 GB, free: 8.055 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007534/1.013, allocations: 2.712 MB / 0.5168 GB, free: 5.254 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.903e-05/1.013, allocations: 47.5 kB / 0.5169 GB, free: 5.199 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 4.779e-06/1.013, allocations: 0 / 0.5169 GB, free: 5.199 MB / 410.7 MB Notification: Performance of matching and sorting (n=146): time 0.2963/1.31, allocations: 6.451 MB / 0.5232 GB, free: 88.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/1.31, allocations: 72.64 kB / 0.5232 GB, free: 88.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00377/1.313, allocations: 1.864 MB / 0.5251 GB, free: 88.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002991/1.314, allocations: 48.83 kB / 0.5251 GB, free: 88.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/1.315, allocations: 1.493 MB / 0.5266 GB, free: 87.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006512/1.316, allocations: 0.4952 MB / 0.5271 GB, free: 87.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/1.316, allocations: 38.28 kB / 0.5271 GB, free: 87.49 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001807/1.316, allocations: 380.7 kB / 0.5275 GB, free: 87.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/1.318, allocations: 0.7686 MB / 0.5282 GB, free: 87.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002396/1.321, allocations: 1.351 MB / 0.5295 GB, free: 86.51 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002573/1.323, allocations: 1.008 MB / 0.5305 GB, free: 86.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.379e-05/1.323, allocations: 5.469 kB / 0.5305 GB, free: 86.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00641/1.33, allocations: 2.468 MB / 0.5329 GB, free: 86.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/1.33, allocations: 13.44 kB / 0.5329 GB, free: 86.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/1.33, allocations: 17.84 kB / 0.533 GB, free: 86.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005166/1.33, allocations: 127.4 kB / 0.5331 GB, free: 86.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0034/1.334, allocations: 487.4 kB / 0.5335 GB, free: 86.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/1.335, allocations: 1.317 MB / 0.5348 GB, free: 85.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002784/1.338, allocations: 112.1 kB / 0.5349 GB, free: 85.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002421/1.338, allocations: 86.52 kB / 0.535 GB, free: 85.03 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (232): * Single equations (assignments): 229 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00277/1.341, allocations: 0.9835 MB / 0.536 GB, free: 84.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006782/1.341, allocations: 202.5 kB / 0.5362 GB, free: 84.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005609/1.347, allocations: 1.982 MB / 0.5381 GB, free: 84.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.436e-05/1.347, allocations: 15.97 kB / 0.5381 GB, free: 84.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/1.347, allocations: 2.344 kB / 0.5381 GB, free: 84.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.748e-05/1.347, allocations: 10.64 kB / 0.5381 GB, free: 84.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/1.36, allocations: 5.074 MB / 0.5431 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/1.36, allocations: 3.781 kB / 0.5431 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002593/1.363, allocations: 324.7 kB / 0.5434 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004538/1.363, allocations: 95 kB / 0.5435 GB, free: 84.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/1.364, allocations: 29.38 kB / 0.5435 GB, free: 84.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009765/1.365, allocations: 1.281 MB / 0.5448 GB, free: 82.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.365, allocations: 3.844 kB / 0.5448 GB, free: 82.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006954/1.372, allocations: 3.12 MB / 0.5478 GB, free: 82.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/1.373, allocations: 473.9 kB / 0.5483 GB, free: 82.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000478/1.374, allocations: 26.89 kB / 0.5483 GB, free: 82.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/1.375, allocations: 86.92 kB / 0.5484 GB, free: 82.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/1.376, allocations: 88.14 kB / 0.5485 GB, free: 82.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/1.376, allocations: 39.5 kB / 0.5485 GB, free: 82.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002822/1.379, allocations: 1.261 MB / 0.5497 GB, free: 82.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.379, allocations: 0 / 0.5497 GB, free: 82.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002943/1.382, allocations: 0.5785 MB / 0.5503 GB, free: 82.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (145): * Single equations (assignments): 142 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008587/1.383, allocations: 460.5 kB / 0.5507 GB, free: 82.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005101/1.388, allocations: 2.209 MB / 0.5529 GB, free: 81.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.388, allocations: 3.844 kB / 0.5529 GB, free: 81.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002481/1.39, allocations: 1.199 MB / 0.5541 GB, free: 81.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/1.394, allocations: 491.1 kB / 0.5545 GB, free: 81.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/1.408, allocations: 6.711 MB / 0.5611 GB, free: 78.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002487/1.411, allocations: 2.314 MB / 0.5634 GB, free: 77.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00304/1.414, allocations: 0.5171 MB / 0.5639 GB, free: 77.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007487/1.415, allocations: 156.1 kB / 0.564 GB, free: 77.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/1.415, allocations: 3.375 kB / 0.564 GB, free: 77.7 MB / 410.7 MB Notification: Performance of Templates: time 0.07675/1.491, allocations: 27.86 MB / 0.5912 GB, free: 76 MB / 410.7 MB