Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,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.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005523/0.0005525, allocations: 12 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08915, allocations: 38.77 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3957/0.4849, allocations: 103.1 MB / 375.6 MB, free: 3.34 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/0.4853, allocations: 93.36 kB / 375.7 MB, free: 3.289 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2453/0.7306, allocations: 56.28 MB / 432 MB, free: 396 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.7306, allocations: 0 / 432 MB, free: 396 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003998/0.7311, allocations: 79.88 kB / 432.1 MB, free: 316 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.2459/0.9769, allocations: 3.122 MB / 435.2 MB, free: 74.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.977, allocations: 12.03 kB / 435.2 MB, free: 74.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002762/0.9798, allocations: 397 kB / 435.6 MB, free: 74.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007688/0.9875, allocations: 1.933 MB / 437.5 MB, free: 73.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003386/0.9879, allocations: 208.9 kB / 437.7 MB, free: 73.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001283/0.9892, allocations: 286.2 kB / 438 MB, free: 73.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01396/1.003, allocations: 3.666 MB / 441.7 MB, free: 73.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001951/1.003, allocations: 10.58 kB / 441.7 MB, free: 73.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009667/1.004, allocations: 119.9 kB / 441.8 MB, free: 73.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002393/1.005, allocations: 137.7 kB / 441.9 MB, free: 73.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/1.015, allocations: 2.928 MB / 444.9 MB, free: 73.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03185/1.047, allocations: 11.52 MB / 456.4 MB, free: 70.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004305/1.051, allocations: 1.941 MB / 458.3 MB, free: 69.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005313/1.052, allocations: 139 kB / 458.5 MB, free: 69.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/1.052, allocations: 47.31 kB / 458.5 MB, free: 69.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=126): time 4.137e-06/1.052, allocations: 0 / 458.5 MB, free: 69.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.02736/1.079, allocations: 7.527 MB / 466 MB, free: 67.13 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/1.079, allocations: 71.7 kB / 466.1 MB, free: 67.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004378/1.084, allocations: 1.773 MB / 467.9 MB, free: 66.35 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004441/1.084, allocations: 53.36 kB / 467.9 MB, free: 66.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/1.085, allocations: 1.301 MB / 469.2 MB, free: 65.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008529/1.086, allocations: 0.5013 MB / 469.7 MB, free: 64.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/1.087, allocations: 35.94 kB / 469.8 MB, free: 64.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/1.087, allocations: 383.5 kB / 470.1 MB, free: 64.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002246/1.089, allocations: 0.8782 MB / 471 MB, free: 64.17 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002539/1.092, allocations: 1.407 MB / 472.4 MB, free: 63.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/1.094, allocations: 1.115 MB / 473.5 MB, free: 62.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.398e-05/1.095, allocations: 9.625 kB / 473.5 MB, free: 62.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.008048/1.103, allocations: 2.887 MB / 476.4 MB, free: 61.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/1.103, allocations: 16.03 kB / 476.4 MB, free: 61.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.962e-05/1.103, allocations: 17.09 kB / 476.5 MB, free: 61.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002285/1.105, allocations: 0.5486 MB / 477 MB, free: 61.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003124/1.108, allocations: 437.4 kB / 477.4 MB, free: 61.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/1.12, allocations: 6.475 MB / 483.9 MB, free: 57.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002837/1.123, allocations: 138.5 kB / 484.1 MB, free: 57.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000558/1.123, allocations: 73.5 kB / 484.1 MB, free: 57.39 MB / 346.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 (207): * Single equations (assignments): 204 * 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.002929/1.126, allocations: 0.9003 MB / 485 MB, free: 56.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007312/1.127, allocations: 203.3 kB / 485.2 MB, free: 56.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008125/1.135, allocations: 2.649 MB / 487.9 MB, free: 55.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/1.135, allocations: 15.5 kB / 487.9 MB, free: 55.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/1.135, allocations: 3.75 kB / 487.9 MB, free: 55.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-05/1.135, allocations: 7.078 kB / 487.9 MB, free: 55.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01622/1.152, allocations: 5.656 MB / 493.6 MB, free: 53.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.02e-05/1.152, allocations: 3.781 kB / 493.6 MB, free: 53.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00216/1.154, allocations: 251.8 kB / 493.8 MB, free: 53.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002767/1.157, allocations: 0.5895 MB / 494.4 MB, free: 53.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003719/1.157, allocations: 37.55 kB / 494.4 MB, free: 53.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01331/1.17, allocations: 8.229 MB / 0.4909 GB, free: 47.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.171, allocations: 4 kB / 0.4909 GB, free: 47.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00907/1.18, allocations: 3.858 MB / 0.4946 GB, free: 43.69 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/1.181, allocations: 469.3 kB / 0.4951 GB, free: 43.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006371/1.182, allocations: 35.14 kB / 0.4951 GB, free: 43.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/1.184, allocations: 99.45 kB / 0.4952 GB, free: 43.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004598/1.184, allocations: 109.2 kB / 0.4953 GB, free: 43.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/1.185, allocations: 43.61 kB / 0.4954 GB, free: 43.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002761/1.187, allocations: 1.194 MB / 0.4965 GB, free: 42.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.187, allocations: 4 kB / 0.4965 GB, free: 42.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003426/1.191, allocations: 0.5962 MB / 0.4971 GB, free: 41.43 MB / 346.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 (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 {(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.0009697/1.192, allocations: 395.9 kB / 0.4975 GB, free: 41.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006587/1.198, allocations: 2.652 MB / 0.5001 GB, free: 38.74 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/1.198, allocations: 384 / 0.5001 GB, free: 38.74 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003913/1.202, allocations: 1.591 MB / 0.5016 GB, free: 37.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/1.206, allocations: 473.7 kB / 0.5021 GB, free: 36.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/1.221, allocations: 6.704 MB / 0.5086 GB, free: 30.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003021/1.224, allocations: 2.225 MB / 0.5108 GB, free: 29.03 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009956/1.225, allocations: 146.5 kB / 0.511 GB, free: 28.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/1.225, allocations: 0 / 0.511 GB, free: 28.89 MB / 346.7 MB Notification: Performance of Templates: time 0.3707/1.596, allocations: 72.96 MB / 0.5822 GB, free: 80.64 MB / 362.7 MB