Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.281/2.281, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003715, allocations: 8 kB / 264.6 MB, free: 12.9 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09512, allocations: 44.51 MB / 309.1 MB, free: 336 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5163/0.6114, allocations: 156.3 MB / 465.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003804/0.6119, allocations: 114 kB / 465.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843/2.455, allocations: 397.2 MB / 0.8425 GB, free: 4.422 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.226e-06/2.455, allocations: 0 / 0.8425 GB, free: 4.422 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001297/2.457, allocations: 303.6 kB / 0.8428 GB, free: 4.125 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.7094/3.166, allocations: 11.99 MB / 0.8545 GB, free: 22.52 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/3.166, allocations: 9.281 kB / 0.8545 GB, free: 22.52 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06122/3.227, allocations: 6.455 MB / 0.8608 GB, free: 21.83 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03758/3.265, allocations: 9.696 MB / 0.8703 GB, free: 20.71 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001528/3.267, allocations: 0.9504 MB / 0.8712 GB, free: 20.68 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006336/3.273, allocations: 1.233 MB / 0.8724 GB, free: 20.68 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07145/3.344, allocations: 20.89 MB / 0.8928 GB, free: 19.15 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009361/3.345, allocations: 28.19 kB / 0.8928 GB, free: 19.14 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005895/3.351, allocations: 0.527 MB / 0.8933 GB, free: 19.14 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001398/3.353, allocations: 0.8531 MB / 0.8942 GB, free: 19.12 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08138/3.434, allocations: 18.93 MB / 0.9127 GB, free: 19.01 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2563/3.691, allocations: 65.85 MB / 0.977 GB, free: 4.316 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5527/4.243, allocations: 46.69 MB / 1.023 GB, free: 36.95 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07203/4.315, allocations: 23.95 MB / 1.046 GB, free: 35.95 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001018/4.316, allocations: 99.34 kB / 1.046 GB, free: 35.91 MB / 474.8 MB Notification: Performance of pre-optimization done (n=782): time 1.276e-05/4.316, allocations: 0 / 1.046 GB, free: 35.91 MB / 474.8 MB Notification: Performance of matching and sorting (n=824): time 0.1976/4.513, allocations: 46.83 MB / 1.092 GB, free: 27.46 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.473e-05/4.513, allocations: 123.2 kB / 1.092 GB, free: 27.39 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/4.524, allocations: 4.291 MB / 1.096 GB, free: 27 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001814/4.526, allocations: 142.1 kB / 1.096 GB, free: 26.96 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004268/4.53, allocations: 5.06 MB / 1.101 GB, free: 23.98 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004375/4.534, allocations: 2.738 MB / 1.104 GB, free: 21.85 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00192/4.536, allocations: 168 kB / 1.104 GB, free: 21.72 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001085/4.537, allocations: 0.6769 MB / 1.105 GB, free: 21.25 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01412/4.552, allocations: 5.187 MB / 1.11 GB, free: 19.14 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01644/4.568, allocations: 7.639 MB / 1.117 GB, free: 14 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/4.584, allocations: 6.526 MB / 1.124 GB, free: 11.06 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.988e-05/4.585, allocations: 20.22 kB / 1.124 GB, free: 11.06 MB / 474.8 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.04354/4.628, allocations: 15.9 MB / 1.139 GB, free: 4.656 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.789e-05/4.628, allocations: 37.78 kB / 1.139 GB, free: 4.656 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001788/4.628, allocations: 74.16 kB / 1.139 GB, free: 4.656 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01299/4.641, allocations: 4.144 MB / 1.143 GB, free: 3.359 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01246/4.654, allocations: 1.681 MB / 1.145 GB, free: 3.305 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02532/4.679, allocations: 12.51 MB / 1.157 GB, free: 10.62 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01011/4.689, allocations: 452 kB / 1.158 GB, free: 10.27 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002579/4.692, allocations: 403.5 kB / 1.158 GB, free: 9.898 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (877): * Single equations (assignments): 821 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0145/4.707, allocations: 4.443 MB / 1.162 GB, free: 6.191 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003557/4.71, allocations: 0.6184 MB / 1.163 GB, free: 5.574 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04993/4.76, allocations: 14.64 MB / 1.177 GB, free: 9.207 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003785/4.761, allocations: 196.2 kB / 1.177 GB, free: 9.035 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-05/4.761, allocations: 4 kB / 1.177 GB, free: 9.031 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001674/4.761, allocations: 39.16 kB / 1.177 GB, free: 9.027 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09271/4.854, allocations: 29.28 MB / 1.206 GB, free: 0.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.022e-05/4.854, allocations: 6.25 kB / 1.206 GB, free: 0.7461 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01066/4.864, allocations: 1.115 MB / 1.207 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3743/5.239, allocations: 4.01 MB / 1.211 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002044/5.241, allocations: 177 kB / 1.211 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02208/5.263, allocations: 12.07 MB / 1.223 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/5.263, allocations: 7.344 kB / 1.223 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06041/5.323, allocations: 21.66 MB / 1.244 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006969/5.33, allocations: 1.792 MB / 1.246 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003728/5.334, allocations: 126 kB / 1.246 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007988/5.342, allocations: 330.9 kB / 1.246 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002867/5.345, allocations: 0.5827 MB / 1.247 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001785/5.347, allocations: 224.5 kB / 1.247 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007689/5.355, allocations: 2.84 MB / 1.25 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/5.355, allocations: 2.375 kB / 1.25 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01322/5.368, allocations: 2.221 MB / 1.252 GB, free: 108.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (562): * Single equations (assignments): 506 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003053/5.371, allocations: 0.6936 MB / 1.253 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03604/5.407, allocations: 13.24 MB / 1.266 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/5.407, allocations: 0.9375 kB / 1.266 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01983/5.427, allocations: 6.842 MB / 1.272 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01148/5.439, allocations: 1.268 MB / 1.274 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07802/5.517, allocations: 30.66 MB / 1.303 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01811/5.535, allocations: 8.071 MB / 1.311 GB, free: 91.19 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01269/5.548, allocations: 2.006 MB / 1.313 GB, free: 90.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003652/5.551, allocations: 459.1 kB / 1.314 GB, free: 90.94 MB / 0.5105 GB Notification: Performance of SimCode: time 1.623e-06/5.551, allocations: 0 / 1.314 GB, free: 90.94 MB / 0.5105 GB Notification: Performance of Templates: time 0.7152/6.266, allocations: 133.4 MB / 1.444 GB, free: 105.1 MB / 0.5105 GB