Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005416/0.0005419, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1152, allocations: 44.5 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4953/0.6105, allocations: 101 MB / 410 MB, free: 15.17 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.6109, allocations: 91.33 kB / 410.1 MB, free: 15.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1891/0.8, allocations: 45.87 MB / 456 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.8001, allocations: 0 / 456 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002878/0.8004, allocations: 63.88 kB / 456 MB, free: 0.7188 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.01031/0.8107, allocations: 2.476 MB / 458.5 MB, free: 14.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.8108, allocations: 8.031 kB / 458.5 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001854/0.8126, allocations: 296.8 kB / 458.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005689/0.8184, allocations: 1.571 MB / 460.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/0.8186, allocations: 164.4 kB / 460.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008032/0.8194, allocations: 212 kB / 460.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009216/0.8287, allocations: 2.758 MB / 463.5 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001053/0.8288, allocations: 11.91 kB / 463.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003684/0.8292, allocations: 84 kB / 463.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001791/0.8294, allocations: 100.1 kB / 463.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.84, allocations: 2.222 MB / 465.9 MB, free: 7.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02752/0.8676, allocations: 8.588 MB / 474.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004815/0.8725, allocations: 1.739 MB / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005614/0.8731, allocations: 215.1 kB / 476.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.8731, allocations: 47.56 kB / 476.5 MB, free: 13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=103): time 3.837e-06/0.8732, allocations: 0 / 476.5 MB, free: 13 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.02916/0.9023, allocations: 7.137 MB / 483.6 MB, free: 5.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.9024, allocations: 64.41 kB / 483.7 MB, free: 5.656 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003227/0.9057, allocations: 1.397 MB / 485.1 MB, free: 4.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002582/0.906, allocations: 45.7 kB / 485.1 MB, free: 4.195 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001142/0.9071, allocations: 1.018 MB / 486.2 MB, free: 3.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006139/0.9078, allocations: 429.8 kB / 486.6 MB, free: 2.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.9079, allocations: 35.94 kB / 486.6 MB, free: 2.703 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.9081, allocations: 362 kB / 487 MB, free: 2.344 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002222/0.9104, allocations: 0.7457 MB / 487.7 MB, free: 1.598 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002563/0.913, allocations: 1.115 MB / 488.8 MB, free: 340 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002771/0.9158, allocations: 0.9198 MB / 489.7 MB, free: 15.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.9158, allocations: 8 kB / 489.7 MB, free: 15.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.008317/0.9242, allocations: 2.591 MB / 492.3 MB, free: 12.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.9243, allocations: 8 kB / 492.3 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-05/0.9243, allocations: 12.25 kB / 492.4 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002901/0.9272, allocations: 0.5843 MB / 492.9 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002642/0.9299, allocations: 331.5 kB / 493.3 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01973/0.9497, allocations: 6.543 MB / 499.8 MB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003543/0.9533, allocations: 103.9 kB / 499.9 MB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004493/0.9538, allocations: 63.98 kB / 500 MB, free: 4.879 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (156): * Single equations (assignments): 153 * 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 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003289/0.9571, allocations: 0.6925 MB / 0.4889 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009032/0.958, allocations: 162 kB / 0.4891 GB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/0.9704, allocations: 2.373 MB / 0.4914 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.669e-05/0.9705, allocations: 16 kB / 0.4914 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/0.9706, allocations: 4 kB / 0.4914 GB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.293e-05/0.9706, allocations: 3.984 kB / 0.4914 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02406/0.9947, allocations: 4.755 MB / 0.4961 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.269e-05/0.9948, allocations: 4 kB / 0.4961 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003105/0.9979, allocations: 203.7 kB / 0.4963 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00539/1.003, allocations: 0.6349 MB / 0.4969 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004115/1.004, allocations: 35.98 kB / 0.4969 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02648/1.03, allocations: 8.315 MB / 0.505 GB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.03, allocations: 448 / 0.505 GB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01459/1.045, allocations: 3.401 MB / 0.5084 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/1.047, allocations: 399 kB / 0.5087 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000702/1.048, allocations: 27.98 kB / 0.5088 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/1.05, allocations: 99.91 kB / 0.5089 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005775/1.05, allocations: 96.84 kB / 0.509 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/1.051, allocations: 32 kB / 0.509 GB, free: 15.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00274/1.053, allocations: 0.957 MB / 0.5099 GB, free: 14.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.053, allocations: 0 / 0.5099 GB, free: 14.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003108/1.056, allocations: 0.5156 MB / 0.5104 GB, free: 13.56 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (96): * Single equations (assignments): 93 * 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,72.2%) 22,(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.00129/1.058, allocations: 316.5 kB / 0.5107 GB, free: 13.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01274/1.071, allocations: 2.348 MB / 0.513 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.666e-05/1.071, allocations: 0 / 0.513 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007578/1.078, allocations: 1.525 MB / 0.5145 GB, free: 9.277 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005224/1.084, allocations: 373.6 kB / 0.5149 GB, free: 8.914 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02128/1.105, allocations: 5.347 MB / 0.5201 GB, free: 3.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004575/1.11, allocations: 1.85 MB / 0.5219 GB, free: 1.633 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00234/1.112, allocations: 361.7 kB / 0.5222 GB, free: 1.273 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006441/1.113, allocations: 107.4 kB / 0.5223 GB, free: 1.168 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/1.113, allocations: 3.938 kB / 0.5223 GB, free: 1.164 MB / 410.7 MB Notification: Performance of Templates: time 0.3476/1.46, allocations: 26.84 MB / 0.5486 GB, free: 109.5 MB / 410.7 MB