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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 16 kB / 264.5 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09619/0.09657, allocations: 44.51 MB / 309.1 MB, free: 352 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5098/0.6064, allocations: 113.1 MB / 422.2 MB, free: 8.297 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.6068, allocations: 92.77 kB / 422.3 MB, free: 8.285 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3242/0.931, allocations: 80.17 MB / 0.4907 GB, free: 1.332 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.931, allocations: 0 / 0.4907 GB, free: 1.332 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004345/0.9315, allocations: 91.88 kB / 0.4908 GB, free: 1.242 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.01679/0.9483, allocations: 3.827 MB / 0.4945 GB, free: 13.34 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.9483, allocations: 8.031 kB / 0.4945 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004985/0.9533, allocations: 0.6396 MB / 0.4951 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/0.9677, allocations: 3.398 MB / 0.4984 GB, free: 9.238 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003906/0.9682, allocations: 258.9 kB / 0.4987 GB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001398/0.9696, allocations: 339.9 kB / 0.499 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.9842, allocations: 4.381 MB / 0.5033 GB, free: 4.129 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001481/0.9844, allocations: 4 kB / 0.5033 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008258/0.9852, allocations: 143.9 kB / 0.5034 GB, free: 3.984 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002843/0.9855, allocations: 162.8 kB / 0.5036 GB, free: 3.824 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/0.9985, allocations: 3.501 MB / 0.507 GB, free: 324 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04157/1.04, allocations: 14.55 MB / 0.5212 GB, free: 1.336 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2792/1.319, allocations: 5.357 MB / 0.5265 GB, free: 79.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009465/1.329, allocations: 3.285 MB / 0.5297 GB, free: 79.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/1.329, allocations: 47.56 kB / 0.5297 GB, free: 79.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 4.839e-06/1.329, allocations: 0 / 0.5297 GB, free: 79.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=164): time 0.02345/1.353, allocations: 7.074 MB / 0.5366 GB, free: 77.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/1.353, allocations: 78.02 kB / 0.5367 GB, free: 77.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005651/1.358, allocations: 2.06 MB / 0.5387 GB, free: 77.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003913/1.359, allocations: 54.75 kB / 0.5388 GB, free: 77.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/1.36, allocations: 1.627 MB / 0.5403 GB, free: 77.01 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/1.362, allocations: 0.5607 MB / 0.5409 GB, free: 76.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/1.362, allocations: 40.78 kB / 0.5409 GB, free: 76.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001846/1.362, allocations: 386.4 kB / 0.5413 GB, free: 76.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00263/1.365, allocations: 0.8507 MB / 0.5421 GB, free: 76.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003049/1.368, allocations: 1.455 MB / 0.5436 GB, free: 75.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003305/1.371, allocations: 1.118 MB / 0.5446 GB, free: 75.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-05/1.371, allocations: 5.5 kB / 0.5446 GB, free: 75.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009033/1.38, allocations: 2.961 MB / 0.5475 GB, free: 75.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.477e-05/1.38, allocations: 12.42 kB / 0.5476 GB, free: 75.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.3e-05/1.38, allocations: 21.53 kB / 0.5476 GB, free: 75.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001795/1.382, allocations: 427.6 kB / 0.548 GB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003567/1.386, allocations: 476 kB / 0.5484 GB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/1.397, allocations: 5.706 MB / 0.554 GB, free: 72.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003278/1.4, allocations: 123.3 kB / 0.5541 GB, free: 72.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005294/1.401, allocations: 86.22 kB / 0.5542 GB, free: 72.75 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.003225/1.404, allocations: 1.067 MB / 0.5552 GB, free: 72.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007497/1.405, allocations: 232.4 kB / 0.5555 GB, free: 72.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007012/1.412, allocations: 2.61 MB / 0.558 GB, free: 72.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.071e-05/1.412, allocations: 16.33 kB / 0.558 GB, free: 72.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/1.412, allocations: 7.719 kB / 0.558 GB, free: 72.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.756e-05/1.412, allocations: 7.312 kB / 0.558 GB, free: 72.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01565/1.428, allocations: 6.106 MB / 0.564 GB, free: 71.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/1.428, allocations: 3.75 kB / 0.564 GB, free: 71.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002082/1.43, allocations: 251.2 kB / 0.5643 GB, free: 71.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/1.432, allocations: 0.5461 MB / 0.5648 GB, free: 71.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001991/1.432, allocations: 34.98 kB / 0.5648 GB, free: 71.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/1.445, allocations: 8.477 MB / 0.5731 GB, free: 65.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.445, allocations: 0 / 0.5731 GB, free: 65.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008877/1.454, allocations: 3.861 MB / 0.5769 GB, free: 63.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/1.456, allocations: 0.505 MB / 0.5774 GB, free: 63.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006922/1.457, allocations: 38.2 kB / 0.5774 GB, free: 63.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/1.459, allocations: 84.98 kB / 0.5775 GB, free: 63.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000417/1.46, allocations: 120.4 kB / 0.5776 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/1.46, allocations: 37.81 kB / 0.5776 GB, free: 63.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003287/1.463, allocations: 1.408 MB / 0.579 GB, free: 62.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.723e-06/1.463, allocations: 0 / 0.579 GB, free: 62.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003844/1.467, allocations: 0.6868 MB / 0.5797 GB, free: 62.39 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.0009699/1.468, allocations: 459.7 kB / 0.5801 GB, free: 62.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006508/1.474, allocations: 2.69 MB / 0.5827 GB, free: 61.06 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.474, allocations: 3.938 kB / 0.5827 GB, free: 61.06 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004277/1.479, allocations: 1.717 MB / 0.5844 GB, free: 60.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004108/1.483, allocations: 0.5071 MB / 0.5849 GB, free: 60.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.5, allocations: 7.697 MB / 0.5924 GB, free: 55.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003837/1.504, allocations: 2.526 MB / 0.5949 GB, free: 54.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003072/1.507, allocations: 0.4964 MB / 0.5954 GB, free: 54.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009226/1.508, allocations: 156.6 kB / 0.5955 GB, free: 54.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/1.508, allocations: 0 / 0.5955 GB, free: 54.62 MB / 410.7 MB Notification: Performance of Templates: time 0.1097/1.618, allocations: 33.97 MB / 0.6287 GB, free: 44.39 MB / 410.7 MB