Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump") Notification: Performance of loadModel(Modelica): time 1.83/1.83, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003595, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08319/0.08357, allocations: 44.5 MB / 308.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump): time 0.01493/0.09855, allocations: 10.04 MB / 318.4 MB, free: 6.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.1089, allocations: 4.045 MB / 322.4 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002428/0.1113, allocations: 51.75 kB / 322.5 MB, free: 2.824 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.1141, allocations: 0.7074 MB / 323.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004174/0.1183, allocations: 0.9113 MB / 324.1 MB, free: 1.199 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002076/0.1204, allocations: 427.3 kB / 324.5 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005325/0.1257, allocations: 2.415 MB / 326.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00349/0.1293, allocations: 1.845 MB / 328.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00266/0.132, allocations: 1.207 MB / 330 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003032/0.1351, allocations: 1.459 MB / 331.5 MB, free: 9.809 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008995/0.136, allocations: 184 kB / 331.6 MB, free: 9.629 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00206/0.1381, allocations: 259.8 kB / 331.9 MB, free: 9.375 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001515/0.1397, allocations: 0.8607 MB / 332.8 MB, free: 8.512 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001316/0.141, allocations: 0.6562 MB / 333.4 MB, free: 7.848 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006727/0.1478, allocations: 4.367 MB / 337.8 MB, free: 3.469 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.703e-06/0.1478, allocations: 4 kB / 337.8 MB, free: 3.465 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.699e-06/0.1478, allocations: 0 / 337.8 MB, free: 3.465 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001227/0.148, allocations: 0 / 337.8 MB, free: 3.465 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 724 * Number of variables: 724 Notification: Performance of Generate backend data structure: time 0.009416/0.1574, allocations: 3.369 MB / 341.2 MB, free: 28 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1574, allocations: 8.031 kB / 341.2 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.1597, allocations: 467.5 kB / 341.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005263/0.165, allocations: 1.877 MB / 343.5 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004878/0.1656, allocations: 379.8 kB / 343.9 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000818/0.1664, allocations: 279.9 kB / 344.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.1774, allocations: 3.654 MB / 347.8 MB, free: 9.211 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.1776, allocations: 15.92 kB / 347.8 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004159/0.178, allocations: 116 kB / 347.9 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/0.1782, allocations: 121.5 kB / 348 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008928/0.1872, allocations: 3.051 MB / 351.1 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02924/0.2164, allocations: 11.74 MB / 362.8 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005109/0.2216, allocations: 2.828 MB / 365.7 MB, free: 6.773 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003714/0.222, allocations: 126.3 kB / 365.8 MB, free: 6.633 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002726/0.2248, allocations: 1.155 MB / 366.9 MB, free: 5.438 MB / 314.7 MB Notification: Performance of pre-optimization done (n=152): time 6.624e-06/0.2248, allocations: 4 kB / 366.9 MB, free: 5.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=172): time 0.2361/0.4609, allocations: 9.307 MB / 376.3 MB, free: 58.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.4611, allocations: 312.8 kB / 376.6 MB, free: 57.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004378/0.4655, allocations: 2.061 MB / 378.6 MB, free: 56.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000335/0.4658, allocations: 64.17 kB / 378.7 MB, free: 56.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.467, allocations: 1.283 MB / 380 MB, free: 55.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007573/0.4678, allocations: 0.5808 MB / 380.5 MB, free: 55.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.468, allocations: 39.41 kB / 380.6 MB, free: 55.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4682, allocations: 390 kB / 381 MB, free: 54.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002499/0.4707, allocations: 1.035 MB / 382 MB, free: 54.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002878/0.4736, allocations: 1.585 MB / 383.6 MB, free: 53.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.4764, allocations: 1.232 MB / 384.8 MB, free: 53.08 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.368e-05/0.4764, allocations: 4 kB / 384.8 MB, free: 53.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007703/0.4842, allocations: 3.445 MB / 388.3 MB, free: 51.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002235/0.4844, allocations: 499.7 kB / 388.8 MB, free: 51.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/0.4845, allocations: 15.59 kB / 388.8 MB, free: 51.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003402/0.4879, allocations: 1.146 MB / 389.9 MB, free: 50.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.4898, allocations: 375.3 kB / 390.3 MB, free: 50.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/0.5075, allocations: 14.29 MB / 404.6 MB, free: 38.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/0.5102, allocations: 171.8 kB / 404.7 MB, free: 38.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003835/0.5106, allocations: 79.98 kB / 404.8 MB, free: 38.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.5106, allocations: 8 kB / 404.8 MB, free: 38.52 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006774/0.5174, allocations: 3.328 MB / 408.2 MB, free: 35.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.266e-05/0.5175, allocations: 12 kB / 408.2 MB, free: 35.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002802/0.5203, allocations: 1.106 MB / 409.3 MB, free: 34.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/0.5221, allocations: 375.3 kB / 409.6 MB, free: 33.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01624/0.5384, allocations: 14.41 MB / 424 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/0.54, allocations: 163.8 kB / 424.2 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.5402, allocations: 79.98 kB / 424.3 MB, free: 18.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulsStart,loadControl.pulsStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * 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: 6 * 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: 3 {(4,100.0%) 14,(3,100.0%) 21,(2,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002015/0.5422, allocations: 0.9675 MB / 425.2 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005993/0.5428, allocations: 229.3 kB / 425.5 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007212/0.55, allocations: 3.38 MB / 428.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/0.5501, allocations: 16 kB / 428.9 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.365e-06/0.5501, allocations: 3.953 kB / 428.9 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.824e-05/0.5502, allocations: 11.95 kB / 428.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.5641, allocations: 6.574 MB / 435.5 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.706e-05/0.5641, allocations: 7.938 kB / 435.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.5653, allocations: 199.8 kB / 435.7 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004243/0.5695, allocations: 1.363 MB / 437 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002303/0.5698, allocations: 43.97 kB / 437.1 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02417/0.594, allocations: 14.68 MB / 451.7 MB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/0.594, allocations: 4 kB / 451.7 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/0.6051, allocations: 4.686 MB / 456.4 MB, free: 1.238 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/0.6069, allocations: 0.5215 MB / 457 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005421/0.6075, allocations: 51.14 kB / 457 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/0.6092, allocations: 131.9 kB / 457.1 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006405/0.6099, allocations: 224.8 kB / 457.4 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001671/0.61, allocations: 47.98 kB / 457.4 MB, free: 260 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003388/0.6134, allocations: 1.418 MB / 458.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.074e-06/0.6135, allocations: 0 / 458.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006012/0.6195, allocations: 1.168 MB / 460 MB, free: 13.65 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulsStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 4 {7 48,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005145/0.6201, allocations: 187.9 kB / 460.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01445/0.6345, allocations: 6.199 MB / 466.4 MB, free: 7.078 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.446e-05/0.6346, allocations: 5.75 kB / 466.4 MB, free: 7.074 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005506/0.6401, allocations: 2.26 MB / 468.6 MB, free: 4.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/0.6434, allocations: 0.4955 MB / 469.1 MB, free: 4.254 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/0.6604, allocations: 7.313 MB / 476.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003426/0.6639, allocations: 2.267 MB / 478.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008565/0.6648, allocations: 147.4 kB / 478.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.698e-06/0.6648, allocations: 0 / 478.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of Templates: time 0.3699/1.035, allocations: 115.4 MB / 0.5803 GB, free: 67.05 MB / 394.7 MB