Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.765/1.765, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003597, allocations: 8 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08072/0.0811, allocations: 44.51 MB / 308.5 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4042/0.4854, allocations: 110.1 MB / 418.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.4857, allocations: 94.14 kB / 418.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2646/0.7503, allocations: 74.73 MB / 493.4 MB, free: 12.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.322e-06/0.7503, allocations: 0 / 493.4 MB, free: 12.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003032/0.7507, allocations: 91.86 kB / 493.5 MB, free: 12.28 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.01213/0.7628, allocations: 3.462 MB / 496.9 MB, free: 8.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.7629, allocations: 8.031 kB / 496.9 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004075/0.767, allocations: 0.5813 MB / 497.5 MB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/0.7781, allocations: 3.138 MB / 0.4889 GB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003348/0.7785, allocations: 234.3 kB / 0.4891 GB, free: 4.723 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.7796, allocations: 307.9 kB / 0.4894 GB, free: 4.422 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/0.7907, allocations: 3.971 MB / 0.4933 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.7909, allocations: 11.88 kB / 0.4933 GB, free: 304 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000492/0.7914, allocations: 132 kB / 0.4934 GB, free: 172 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001947/0.7916, allocations: 142.2 kB / 0.4936 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009462/0.8011, allocations: 3.144 MB / 0.4966 GB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03185/0.833, allocations: 13.4 MB / 0.5097 GB, free: 15.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005993/0.839, allocations: 3.946 MB / 0.5136 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006992/0.846, allocations: 2.72 MB / 0.5162 GB, free: 7.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.133e-05/0.8461, allocations: 43.56 kB / 0.5163 GB, free: 7.699 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 4.332e-06/0.8462, allocations: 0 / 0.5163 GB, free: 7.699 MB / 410.7 MB Notification: Performance of matching and sorting (n=146): time 0.02015/0.8663, allocations: 6.462 MB / 0.5226 GB, free: 1.141 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.8664, allocations: 72.67 kB / 0.5227 GB, free: 1.059 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2315/1.098, allocations: 1.642 MB / 0.5243 GB, free: 88.17 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002703/1.098, allocations: 48.94 kB / 0.5243 GB, free: 88.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/1.099, allocations: 1.423 MB / 0.5257 GB, free: 87.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000529/1.1, allocations: 0.4943 MB / 0.5262 GB, free: 87.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/1.1, allocations: 35.94 kB / 0.5262 GB, free: 87.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/1.1, allocations: 378.4 kB / 0.5266 GB, free: 87.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/1.102, allocations: 0.7749 MB / 0.5273 GB, free: 87.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001933/1.104, allocations: 1.345 MB / 0.5287 GB, free: 86.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/1.106, allocations: 1.016 MB / 0.5296 GB, free: 86.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.554e-05/1.106, allocations: 7.281 kB / 0.5297 GB, free: 86.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005497/1.111, allocations: 2.337 MB / 0.5319 GB, free: 86.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/1.112, allocations: 16.05 kB / 0.532 GB, free: 86.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.738e-05/1.112, allocations: 18.62 kB / 0.532 GB, free: 86.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004298/1.112, allocations: 125.4 kB / 0.5321 GB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002426/1.114, allocations: 489.5 kB / 0.5326 GB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/1.116, allocations: 1.315 MB / 0.5338 GB, free: 85.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/1.118, allocations: 117.9 kB / 0.534 GB, free: 85.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002683/1.118, allocations: 81.86 kB / 0.534 GB, free: 85.26 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.002358/1.12, allocations: 0.9779 MB / 0.535 GB, free: 85.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005236/1.121, allocations: 203.6 kB / 0.5352 GB, free: 85.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005064/1.126, allocations: 1.996 MB / 0.5371 GB, free: 84.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/1.126, allocations: 13.53 kB / 0.5371 GB, free: 84.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/1.126, allocations: 1.188 kB / 0.5371 GB, free: 84.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/1.126, allocations: 8.25 kB / 0.5372 GB, free: 84.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/1.138, allocations: 5.069 MB / 0.5421 GB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/1.138, allocations: 1.375 kB / 0.5421 GB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/1.14, allocations: 320.7 kB / 0.5424 GB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003838/1.14, allocations: 101.1 kB / 0.5425 GB, free: 84.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001319/1.14, allocations: 29.31 kB / 0.5425 GB, free: 84.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008625/1.141, allocations: 1.282 MB / 0.5438 GB, free: 83.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.77e-06/1.141, allocations: 2.906 kB / 0.5438 GB, free: 83.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006556/1.148, allocations: 3.263 MB / 0.547 GB, free: 82.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/1.149, allocations: 467.5 kB / 0.5474 GB, free: 82.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004924/1.15, allocations: 27.98 kB / 0.5474 GB, free: 82.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/1.151, allocations: 85.09 kB / 0.5475 GB, free: 82.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/1.151, allocations: 95.42 kB / 0.5476 GB, free: 82.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/1.151, allocations: 39.31 kB / 0.5477 GB, free: 82.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002692/1.154, allocations: 1.26 MB / 0.5489 GB, free: 82.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.65e-07/1.154, allocations: 0 / 0.5489 GB, free: 82.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002805/1.157, allocations: 0.5759 MB / 0.5494 GB, free: 82.23 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.0007955/1.158, allocations: 460.6 kB / 0.5499 GB, free: 82.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004368/1.162, allocations: 2.217 MB / 0.5521 GB, free: 81.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.332e-06/1.162, allocations: 3.75 kB / 0.5521 GB, free: 81.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002225/1.164, allocations: 1.193 MB / 0.5532 GB, free: 81.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003111/1.168, allocations: 478.5 kB / 0.5537 GB, free: 81.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/1.18, allocations: 6.743 MB / 0.5603 GB, free: 78.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002711/1.183, allocations: 2.278 MB / 0.5625 GB, free: 77.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009384/1.184, allocations: 167.7 kB / 0.5626 GB, free: 77.77 MB / 410.7 MB Notification: Performance of SimCode: time 2.081e-06/1.184, allocations: 3.844 kB / 0.5627 GB, free: 77.77 MB / 410.7 MB Notification: Performance of Templates: time 0.0966/1.281, allocations: 82.3 MB / 0.643 GB, free: 33.08 MB / 410.7 MB