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_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003557, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1023, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4976/0.6, allocations: 110.1 MB / 419.1 MB, free: 9.691 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.6004, allocations: 90.64 kB / 419.2 MB, free: 9.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3125/0.9128, allocations: 74.73 MB / 493.9 MB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.9129, allocations: 0 / 493.9 MB, free: 10.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004489/0.9134, allocations: 87.86 kB / 494 MB, free: 10.43 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.01646/0.9298, allocations: 3.465 MB / 497.4 MB, free: 6.891 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.9299, allocations: 12.03 kB / 497.4 MB, free: 6.879 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004942/0.9349, allocations: 0.5813 MB / 498 MB, free: 6.293 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01424/0.9492, allocations: 3.134 MB / 0.4894 GB, free: 3.102 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004181/0.9496, allocations: 238.3 kB / 0.4896 GB, free: 2.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001478/0.9511, allocations: 303.9 kB / 0.4899 GB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.9664, allocations: 4.006 MB / 0.4938 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001766/0.9667, allocations: 3.938 kB / 0.4938 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001023/0.9677, allocations: 136 kB / 0.494 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002441/0.968, allocations: 142.2 kB / 0.4941 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01232/0.9803, allocations: 3.148 MB / 0.4972 GB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04027/1.021, allocations: 13.39 MB / 0.5103 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007714/1.028, allocations: 3.949 MB / 0.5141 GB, free: 8.688 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008528/1.037, allocations: 2.72 MB / 0.5168 GB, free: 5.879 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/1.037, allocations: 47.56 kB / 0.5168 GB, free: 5.824 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 4.709e-06/1.037, allocations: 0 / 0.5168 GB, free: 5.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=146): time 0.3192/1.356, allocations: 6.459 MB / 0.5231 GB, free: 87.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/1.356, allocations: 69.92 kB / 0.5232 GB, free: 87.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005118/1.362, allocations: 1.856 MB / 0.525 GB, free: 87.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000373/1.362, allocations: 49.95 kB / 0.5251 GB, free: 87.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/1.363, allocations: 1.424 MB / 0.5264 GB, free: 86.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007887/1.364, allocations: 0.4898 MB / 0.5269 GB, free: 86.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/1.364, allocations: 34.81 kB / 0.527 GB, free: 86.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/1.365, allocations: 388 kB / 0.5273 GB, free: 86.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/1.367, allocations: 0.7722 MB / 0.5281 GB, free: 86.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003732/1.371, allocations: 1.346 MB / 0.5294 GB, free: 85.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/1.375, allocations: 1.015 MB / 0.5304 GB, free: 85.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.871e-05/1.375, allocations: 6 kB / 0.5304 GB, free: 85.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.009517/1.384, allocations: 2.348 MB / 0.5327 GB, free: 85.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.409e-05/1.385, allocations: 15.03 kB / 0.5327 GB, free: 85.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.004e-05/1.385, allocations: 17.59 kB / 0.5327 GB, free: 85.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007047/1.385, allocations: 122.4 kB / 0.5328 GB, free: 85.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004853/1.39, allocations: 489.9 kB / 0.5333 GB, free: 85.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/1.392, allocations: 1.31 MB / 0.5346 GB, free: 84.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003893/1.396, allocations: 118.2 kB / 0.5347 GB, free: 84.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004587/1.396, allocations: 79.59 kB / 0.5348 GB, free: 84.3 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.003944/1.4, allocations: 0.9832 MB / 0.5357 GB, free: 84.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008799/1.401, allocations: 201.4 kB / 0.5359 GB, free: 84.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007779/1.409, allocations: 1.99 MB / 0.5379 GB, free: 83.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/1.409, allocations: 16.81 kB / 0.5379 GB, free: 83.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/1.409, allocations: 1.875 kB / 0.5379 GB, free: 83.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.658e-05/1.409, allocations: 7.125 kB / 0.5379 GB, free: 83.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01857/1.428, allocations: 5.066 MB / 0.5428 GB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/1.428, allocations: 4.312 kB / 0.5428 GB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003645/1.431, allocations: 328.6 kB / 0.5432 GB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006202/1.432, allocations: 94.2 kB / 0.5432 GB, free: 83.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000237/1.432, allocations: 38.19 kB / 0.5433 GB, free: 83.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/1.433, allocations: 1.279 MB / 0.5445 GB, free: 82.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/1.434, allocations: 6.688 kB / 0.5445 GB, free: 82.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00983/1.443, allocations: 3.126 MB / 0.5476 GB, free: 81.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002054/1.445, allocations: 470.5 kB / 0.548 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007685/1.446, allocations: 27.55 kB / 0.5481 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002646/1.449, allocations: 89.52 kB / 0.5481 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/1.449, allocations: 83.33 kB / 0.5482 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/1.449, allocations: 43.48 kB / 0.5483 GB, free: 81.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003152/1.453, allocations: 1.258 MB / 0.5495 GB, free: 81.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.453, allocations: 0 / 0.5495 GB, free: 81.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003202/1.456, allocations: 0.5794 MB / 0.5501 GB, free: 81.47 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.0009683/1.457, allocations: 460.7 kB / 0.5505 GB, free: 81.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005181/1.462, allocations: 2.219 MB / 0.5527 GB, free: 81.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/1.462, allocations: 0 / 0.5527 GB, free: 81.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002538/1.465, allocations: 1.201 MB / 0.5538 GB, free: 80.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003891/1.469, allocations: 484.6 kB / 0.5543 GB, free: 80.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/1.484, allocations: 6.746 MB / 0.5609 GB, free: 77.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/1.487, allocations: 2.269 MB / 0.5631 GB, free: 77.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/1.488, allocations: 174.1 kB / 0.5633 GB, free: 77.01 MB / 410.7 MB Notification: Performance of SimCode: time 1.863e-06/1.488, allocations: 0 / 0.5633 GB, free: 77.01 MB / 410.7 MB Notification: Performance of Templates: time 0.1369/1.625, allocations: 82.3 MB / 0.6437 GB, free: 31 MB / 410.7 MB