Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005012/0.0005014, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09855, allocations: 44.5 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.478/0.5766, allocations: 108.4 MB / 417.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/0.577, allocations: 93.64 kB / 417.4 MB, free: 10.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2515/0.8286, allocations: 58.22 MB / 475.7 MB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.8286, allocations: 0 / 475.7 MB, free: 13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004529/0.8291, allocations: 79.88 kB / 475.7 MB, free: 12.92 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01431/0.8434, allocations: 3.233 MB / 479 MB, free: 9.617 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.8435, allocations: 12.03 kB / 479 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002741/0.8463, allocations: 399.5 kB / 479.4 MB, free: 9.211 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009274/0.8556, allocations: 2.188 MB / 481.6 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/0.856, allocations: 213.7 kB / 481.8 MB, free: 6.758 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001375/0.8574, allocations: 283.9 kB / 482.1 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/0.8699, allocations: 3.656 MB / 485.7 MB, free: 2.676 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.8701, allocations: 11.98 kB / 485.7 MB, free: 2.664 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005473/0.8707, allocations: 120 kB / 485.8 MB, free: 2.547 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002175/0.8709, allocations: 137.4 kB / 486 MB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01057/0.8815, allocations: 2.914 MB / 488.9 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03483/0.9164, allocations: 11.64 MB / 0.4888 GB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004678/0.9211, allocations: 1.955 MB / 0.4907 GB, free: 1.438 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005981/0.9218, allocations: 227.5 kB / 0.4909 GB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.12e-05/0.9219, allocations: 51.8 kB / 0.491 GB, free: 1.121 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.799e-06/0.9219, allocations: 0 / 0.491 GB, free: 1.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.0283/0.9502, allocations: 7.461 MB / 0.4983 GB, free: 9.551 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.9503, allocations: 76.67 kB / 0.4983 GB, free: 9.465 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005069/0.9554, allocations: 1.943 MB / 0.5002 GB, free: 7.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004541/0.9559, allocations: 49.7 kB / 0.5003 GB, free: 7.426 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001428/0.9573, allocations: 1.322 MB / 0.5016 GB, free: 6.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008411/0.9582, allocations: 0.5045 MB / 0.5021 GB, free: 5.578 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.9584, allocations: 36 kB / 0.5021 GB, free: 5.543 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.9587, allocations: 382.8 kB / 0.5025 GB, free: 5.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/0.9611, allocations: 0.8745 MB / 0.5033 GB, free: 4.285 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003076/0.9642, allocations: 1.422 MB / 0.5047 GB, free: 2.625 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003376/0.9677, allocations: 1.111 MB / 0.5058 GB, free: 1.516 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.971e-05/0.9677, allocations: 8 kB / 0.5058 GB, free: 1.508 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.009283/0.977, allocations: 2.892 MB / 0.5086 GB, free: 14.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/0.9771, allocations: 12.44 kB / 0.5086 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-05/0.9772, allocations: 20 kB / 0.5087 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/0.9798, allocations: 0.5449 MB / 0.5092 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003376/0.9832, allocations: 435.3 kB / 0.5096 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01997/1.003, allocations: 6.471 MB / 0.5159 GB, free: 6.844 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004678/1.008, allocations: 143.7 kB / 0.5161 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000728/1.009, allocations: 80 kB / 0.5161 GB, free: 6.625 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (208): * Single equations (assignments): 205 * 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,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004484/1.013, allocations: 0.9109 MB / 0.517 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/1.014, allocations: 201.5 kB / 0.5172 GB, free: 5.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/1.028, allocations: 2.668 MB / 0.5198 GB, free: 2.816 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.923e-05/1.028, allocations: 16 kB / 0.5198 GB, free: 2.801 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-05/1.028, allocations: 4 kB / 0.5198 GB, free: 2.797 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.719e-05/1.028, allocations: 7.969 kB / 0.5198 GB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2985/1.327, allocations: 5.722 MB / 0.5254 GB, free: 99.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/1.327, allocations: 2.375 kB / 0.5254 GB, free: 99.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002141/1.329, allocations: 253.3 kB / 0.5257 GB, free: 99.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002905/1.332, allocations: 0.5862 MB / 0.5263 GB, free: 99.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002886/1.332, allocations: 38.64 kB / 0.5263 GB, free: 99.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01382/1.346, allocations: 8.22 MB / 0.5343 GB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.346, allocations: 0 / 0.5343 GB, free: 95.76 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/1.356, allocations: 3.876 MB / 0.5381 GB, free: 95.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001839/1.358, allocations: 490 kB / 0.5386 GB, free: 95.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006414/1.359, allocations: 37.12 kB / 0.5386 GB, free: 95.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002223/1.361, allocations: 98.72 kB / 0.5387 GB, free: 95.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003994/1.362, allocations: 115.8 kB / 0.5388 GB, free: 95.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/1.362, allocations: 41.59 kB / 0.5388 GB, free: 95.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003453/1.365, allocations: 1.328 MB / 0.5401 GB, free: 95.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.365, allocations: 1.375 kB / 0.5401 GB, free: 95.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00364/1.369, allocations: 0.6102 MB / 0.5407 GB, free: 95.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (122): * Single equations (assignments): 119 * 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 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00104/1.37, allocations: 398.1 kB / 0.5411 GB, free: 95.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006167/1.376, allocations: 2.622 MB / 0.5437 GB, free: 94.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.376, allocations: 0 / 0.5437 GB, free: 94.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003983/1.38, allocations: 1.609 MB / 0.5453 GB, free: 94.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00402/1.384, allocations: 0.4924 MB / 0.5457 GB, free: 94.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01531/1.4, allocations: 6.842 MB / 0.5524 GB, free: 91.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002861/1.403, allocations: 2.25 MB / 0.5546 GB, free: 90.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/1.404, allocations: 156.8 kB / 0.5548 GB, free: 90.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.342e-06/1.404, allocations: 0 / 0.5548 GB, free: 90.79 MB / 410.7 MB Notification: Performance of Templates: time 0.1173/1.521, allocations: 75.09 MB / 0.6281 GB, free: 47.38 MB / 410.7 MB