Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,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.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump") Notification: Performance of loadModel(Modelica): time 1.587/1.587, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.000365, allocations: 12 kB / 233.2 MB, free: 3.043 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06944/0.06983, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump): time 0.01646/0.08633, allocations: 10.01 MB / 281.9 MB, free: 2.137 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.1009, allocations: 3.963 MB / 285.9 MB, free: 14.17 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002973/0.1039, allocations: 51.75 kB / 286 MB, free: 14.12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003606/0.1076, allocations: 0.6996 MB / 286.7 MB, free: 13.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005193/0.1128, allocations: 0.8919 MB / 287.5 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0028/0.1156, allocations: 483.3 kB / 288 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006297/0.1219, allocations: 2.446 MB / 290.5 MB, free: 9.598 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004714/0.1267, allocations: 1.842 MB / 292.3 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002451/0.1292, allocations: 1.242 MB / 293.5 MB, free: 6.473 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002262/0.1315, allocations: 1.428 MB / 295 MB, free: 5.039 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005958/0.1321, allocations: 184 kB / 295.2 MB, free: 4.859 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.1332, allocations: 259.9 kB / 295.4 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001227/0.1344, allocations: 0.8646 MB / 296.3 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.1356, allocations: 0.6562 MB / 296.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1874/0.323, allocations: 4.327 MB / 301.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.323, allocations: 0 / 301.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.462e-06/0.3231, allocations: 1.188 kB / 301.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001074/0.3232, allocations: 0.5 kB / 301.3 MB, free: 13.13 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 727 * Number of variables: 727 Notification: Performance of Generate backend data structure: time 0.008563/0.3318, allocations: 3.348 MB / 304.6 MB, free: 11.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3318, allocations: 9.625 kB / 304.6 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002326/0.3342, allocations: 469.7 kB / 305.1 MB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004752/0.3389, allocations: 1.825 MB / 306.9 MB, free: 11.04 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003685/0.3393, allocations: 384.5 kB / 307.3 MB, free: 10.83 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008994/0.3403, allocations: 282.9 kB / 307.5 MB, free: 10.83 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009002/0.3493, allocations: 3.671 MB / 311.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.61e-05/0.3494, allocations: 11.45 kB / 311.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003786/0.3498, allocations: 114.9 kB / 311.3 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001454/0.35, allocations: 116.7 kB / 311.5 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007933/0.3579, allocations: 3.065 MB / 314.5 MB, free: 10.44 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02373/0.3817, allocations: 11.78 MB / 326.3 MB, free: 4.461 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003808/0.3855, allocations: 2.812 MB / 329.1 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002647/0.3858, allocations: 133 kB / 329.2 MB, free: 1.738 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002048/0.3879, allocations: 1.158 MB / 330.4 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of pre-optimization done (n=152): time 5.13e-06/0.3879, allocations: 0 / 330.4 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of matching and sorting (n=172): time 0.04573/0.4337, allocations: 9.287 MB / 339.7 MB, free: 7.199 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003376/0.4341, allocations: 304.7 kB / 340 MB, free: 6.836 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007793/0.4419, allocations: 2.004 MB / 342 MB, free: 4.793 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00052/0.4425, allocations: 65.69 kB / 342.1 MB, free: 4.723 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002494/0.445, allocations: 1.275 MB / 343.3 MB, free: 3.441 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001384/0.4464, allocations: 0.5769 MB / 343.9 MB, free: 2.871 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/0.4467, allocations: 44 kB / 344 MB, free: 2.828 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004558/0.4472, allocations: 390.8 kB / 344.3 MB, free: 2.438 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004681/0.4519, allocations: 1.031 MB / 345.4 MB, free: 1.402 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005717/0.4577, allocations: 1.58 MB / 346.9 MB, free: 15.61 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005372/0.4631, allocations: 1.243 MB / 348.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/0.4631, allocations: 4 kB / 348.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01663/0.4798, allocations: 3.489 MB / 351.7 MB, free: 10.96 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.053e-05/0.4799, allocations: 8.094 kB / 351.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.802e-05/0.48, allocations: 19.94 kB / 351.7 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006154/0.4862, allocations: 1.153 MB / 352.9 MB, free: 9.762 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/0.4883, allocations: 381.6 kB / 353.2 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02227/0.5106, allocations: 14.32 MB / 367.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002535/0.5131, allocations: 171.8 kB / 367.7 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/0.5134, allocations: 79.98 kB / 367.8 MB, free: 10.11 MB / 298.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].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched) * 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.002116/0.5155, allocations: 0.8959 MB / 368.7 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00057/0.5161, allocations: 229.3 kB / 368.9 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008593/0.5247, allocations: 3.379 MB / 372.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/0.5248, allocations: 16 kB / 372.3 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.5248, allocations: 4 kB / 372.3 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.14e-05/0.5248, allocations: 7.969 kB / 372.3 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01635/0.5412, allocations: 6.567 MB / 378.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.5413, allocations: 0 / 378.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.5425, allocations: 206.9 kB / 379.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004775/0.5473, allocations: 1.355 MB / 380.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002367/0.5475, allocations: 43.97 kB / 380.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03792/0.5855, allocations: 14.67 MB / 395.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/0.5855, allocations: 4 kB / 395.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0188/0.6043, allocations: 4.69 MB / 399.9 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002816/0.6072, allocations: 0.5177 MB / 400.4 MB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/0.6084, allocations: 47.98 kB / 400.4 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003911/0.6123, allocations: 135.9 kB / 400.6 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001322/0.6137, allocations: 218.7 kB / 400.8 MB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003457/0.614, allocations: 51.97 kB / 400.8 MB, free: 8.438 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003504/0.6176, allocations: 1.372 MB / 402.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.6176, allocations: 0 / 402.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003722/0.6213, allocations: 0.6914 MB / 402.9 MB, free: 6.355 MB / 330.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].tSwitch,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].quenched,switch.closerWithArc[3].off,switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].quenched) * 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.0005481/0.6219, allocations: 182.4 kB / 403.1 MB, free: 6.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008452/0.6304, allocations: 3.58 MB / 406.6 MB, free: 2.559 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.111e-06/0.6304, allocations: 0 / 406.6 MB, free: 2.559 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005371/0.6358, allocations: 2.269 MB / 408.9 MB, free: 248 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003128/0.639, allocations: 496.4 kB / 409.4 MB, free: 15.76 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/0.6554, allocations: 7.239 MB / 416.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003007/0.6585, allocations: 2.237 MB / 418.9 MB, free: 6.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008227/0.6593, allocations: 147.4 kB / 419 MB, free: 6.09 MB / 346.7 MB Notification: Performance of SimCode: time 1.786e-06/0.6593, allocations: 0 / 419 MB, free: 6.09 MB / 346.7 MB Notification: Performance of Templates: time 0.3122/0.9716, allocations: 114.3 MB / 0.5208 GB, free: 49.35 MB / 362.7 MB