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.807/1.807, allocations: 171.2 MB / 184.2 MB, free: 12.05 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.821e-05/2.84e-05, allocations: 4 kB / 228.8 MB, free: 15.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2554, allocations: 38.76 MB / 267.6 MB, free: 9.461 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3856/0.641, allocations: 105.1 MB / 372.6 MB, free: 40.2 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.6413, allocations: 83.97 kB / 372.7 MB, free: 40.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2394/0.8807, allocations: 61.63 MB / 434.4 MB, free: 4.656 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.718e-06/0.8808, allocations: 0 / 434.4 MB, free: 4.656 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003833/0.8812, allocations: 75.94 kB / 434.4 MB, free: 4.582 MB / 298.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.01254/0.8937, allocations: 2.995 MB / 437.4 MB, free: 1.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.8938, allocations: 8.031 kB / 437.4 MB, free: 1.512 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00385/0.8977, allocations: 479.5 kB / 437.9 MB, free: 1.039 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009086/0.9068, allocations: 1.986 MB / 439.9 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000685/0.9076, allocations: 379.8 kB / 440.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001501/0.9091, allocations: 283.9 kB / 440.5 MB, free: 14.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01628/0.9254, allocations: 3.585 MB / 444.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001677/0.9256, allocations: 4 kB / 444.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000871/0.9265, allocations: 120 kB / 444.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002369/0.9268, allocations: 109.5 kB / 444.4 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01579/0.9426, allocations: 2.825 MB / 447.2 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02952/0.9722, allocations: 11.78 MB / 459 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004852/0.9771, allocations: 2.784 MB / 461.7 MB, free: 8.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002613/0.9797, allocations: 1.098 MB / 462.8 MB, free: 7.301 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004049/0.9802, allocations: 142.3 kB / 463 MB, free: 7.145 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002566/0.9827, allocations: 1.116 MB / 464.1 MB, free: 5.988 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 5.823e-06/0.9828, allocations: 0 / 464.1 MB, free: 5.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=179): time 0.0256/1.008, allocations: 7.969 MB / 472.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002476/1.009, allocations: 342.4 kB / 472.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0043/1.013, allocations: 1.745 MB / 474.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004081/1.013, allocations: 69.69 kB / 474.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001537/1.015, allocations: 1.261 MB / 475.5 MB, free: 10.42 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009483/1.016, allocations: 0.597 MB / 476.1 MB, free: 9.816 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/1.016, allocations: 44 kB / 476.1 MB, free: 9.773 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002756/1.016, allocations: 390.8 kB / 476.5 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/1.019, allocations: 0.9958 MB / 477.5 MB, free: 8.383 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002927/1.022, allocations: 1.545 MB / 479 MB, free: 6.621 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/1.024, allocations: 1.202 MB / 480.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.638e-05/1.025, allocations: 4 kB / 480.2 MB, free: 5.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.008921/1.033, allocations: 3.47 MB / 483.7 MB, free: 1.918 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/1.034, allocations: 8 kB / 483.7 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.028e-05/1.034, allocations: 20.3 kB / 483.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00436/1.038, allocations: 1.189 MB / 484.9 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002086/1.04, allocations: 375.3 kB / 485.3 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02311/1.063, allocations: 14.54 MB / 499.8 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/1.066, allocations: 175.8 kB / 500 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000371/1.066, allocations: 83.98 kB / 0.4884 GB, free: 0.7031 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 202 * 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%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005777/1.067, allocations: 239.6 kB / 0.4886 GB, free: 476 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006555/1.068, allocations: 233.2 kB / 0.4888 GB, free: 240 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2124/1.28, allocations: 3.377 MB / 0.4921 GB, free: 82.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.653e-05/1.28, allocations: 19.91 kB / 0.4921 GB, free: 82.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/1.28, allocations: 2.125 kB / 0.4921 GB, free: 82.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.419e-05/1.28, allocations: 7.688 kB / 0.4921 GB, free: 82.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0162/1.296, allocations: 6.65 MB / 0.4986 GB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-05/1.297, allocations: 6.969 kB / 0.4986 GB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/1.298, allocations: 205.5 kB / 0.4988 GB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004748/1.303, allocations: 1.387 MB / 0.5002 GB, free: 82.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003135/1.303, allocations: 48.03 kB / 0.5002 GB, free: 82.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02145/1.324, allocations: 14.57 MB / 0.5145 GB, free: 76.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.678e-06/1.324, allocations: 2.812 kB / 0.5145 GB, free: 76.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009967/1.334, allocations: 4.877 MB / 0.5192 GB, free: 75.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001631/1.336, allocations: 0.5216 MB / 0.5197 GB, free: 75.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005248/1.337, allocations: 49.42 kB / 0.5198 GB, free: 75.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/1.339, allocations: 140 kB / 0.5199 GB, free: 75.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006342/1.339, allocations: 240.2 kB / 0.5201 GB, free: 75.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/1.339, allocations: 52.97 kB / 0.5202 GB, free: 75.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002517/1.342, allocations: 1.342 MB / 0.5215 GB, free: 75.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.142e-06/1.342, allocations: 0 / 0.5215 GB, free: 75.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003622/1.346, allocations: 0.7569 MB / 0.5222 GB, free: 75.04 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 107 * 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%) 4} * Non-linear torn systems: 4 {7 51,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007138/1.346, allocations: 340.9 kB / 0.5226 GB, free: 74.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007003/1.353, allocations: 3.558 MB / 0.526 GB, free: 73.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.824e-06/1.353, allocations: 0 / 0.526 GB, free: 73.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005134/1.359, allocations: 2.323 MB / 0.5283 GB, free: 72.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003516/1.362, allocations: 0.5026 MB / 0.5288 GB, free: 71.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/1.376, allocations: 5.082 MB / 0.5338 GB, free: 70.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/1.378, allocations: 2.25 MB / 0.536 GB, free: 69.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008276/1.379, allocations: 148.3 kB / 0.5361 GB, free: 69.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.921e-06/1.379, allocations: 0 / 0.5361 GB, free: 69.12 MB / 362.7 MB Notification: Performance of Templates: time 0.3624/1.741, allocations: 115.8 MB / 0.6492 GB, free: 82.11 MB / 362.7 MB