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.SMEE_LoadDump.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.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.1 MB / 187.3 MB, free: 1.145 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003359, allocations: 8 kB / 233.8 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07732/0.07768, allocations: 38.76 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3891/0.4668, allocations: 105.1 MB / 377.7 MB, free: 1.426 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.4672, allocations: 93.33 kB / 377.8 MB, free: 1.375 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4887/0.9559, allocations: 61.52 MB / 439.3 MB, free: 76.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.956, allocations: 0 / 439.3 MB, free: 76.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003916/0.9564, allocations: 81.84 kB / 439.4 MB, free: 76.96 MB / 346.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.0135/0.9699, allocations: 3.378 MB / 442.7 MB, free: 75.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.9699, allocations: 10.69 kB / 442.8 MB, free: 75.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003288/0.9732, allocations: 486 kB / 443.2 MB, free: 75.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006777/0.9801, allocations: 1.995 MB / 445.2 MB, free: 74.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003907/0.9805, allocations: 376.4 kB / 445.6 MB, free: 74.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001363/0.9819, allocations: 290.8 kB / 445.9 MB, free: 74.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.9949, allocations: 3.684 MB / 449.6 MB, free: 74.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.9951, allocations: 7.469 kB / 449.6 MB, free: 74.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008702/0.996, allocations: 120.2 kB / 449.7 MB, free: 74.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001612/0.9962, allocations: 120.1 kB / 449.8 MB, free: 74.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009773/1.006, allocations: 2.933 MB / 452.7 MB, free: 74.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03203/1.038, allocations: 11.78 MB / 464.5 MB, free: 71.22 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005202/1.043, allocations: 2.851 MB / 467.4 MB, free: 69.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005059/1.044, allocations: 148 kB / 467.5 MB, free: 69.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00301/1.047, allocations: 1.169 MB / 468.7 MB, free: 68.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=155): time 4.459e-06/1.047, allocations: 0 / 468.7 MB, free: 68.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=178): time 0.03916/1.086, allocations: 9.935 MB / 478.6 MB, free: 65.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/1.086, allocations: 333.8 kB / 478.9 MB, free: 64.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004456/1.091, allocations: 2 MB / 480.9 MB, free: 63.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004879/1.091, allocations: 66.5 kB / 481 MB, free: 63.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/1.093, allocations: 1.258 MB / 482.3 MB, free: 62.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008964/1.093, allocations: 0.5898 MB / 482.9 MB, free: 62.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/1.094, allocations: 39.5 kB / 482.9 MB, free: 62.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/1.094, allocations: 400 kB / 483.3 MB, free: 61.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002776/1.097, allocations: 1.047 MB / 484.3 MB, free: 61.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00352/1.1, allocations: 1.59 MB / 485.9 MB, free: 60.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003343/1.104, allocations: 1.247 MB / 487.2 MB, free: 60.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-05/1.104, allocations: 0 / 487.2 MB, free: 60.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.01052/1.114, allocations: 3.572 MB / 490.7 MB, free: 58.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/1.114, allocations: 10.66 kB / 490.7 MB, free: 58.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.353e-05/1.114, allocations: 17.84 kB / 490.8 MB, free: 58.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004862/1.119, allocations: 1.194 MB / 492 MB, free: 58.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002778/1.122, allocations: 379.5 kB / 492.3 MB, free: 58.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02283/1.145, allocations: 14.86 MB / 0.4953 GB, free: 46.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003923/1.149, allocations: 173.5 kB / 0.4955 GB, free: 46.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006151/1.15, allocations: 87.66 kB / 0.4956 GB, free: 46.32 MB / 346.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 201 * 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.003274/1.153, allocations: 0.8926 MB / 0.4964 GB, free: 45.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008881/1.154, allocations: 233.2 kB / 0.4966 GB, free: 45.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01145/1.165, allocations: 3.488 MB / 0.5001 GB, free: 42.41 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/1.165, allocations: 24 kB / 0.5001 GB, free: 42.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/1.165, allocations: 0 / 0.5001 GB, free: 42.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.398e-05/1.165, allocations: 7.125 kB / 0.5001 GB, free: 42.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02123/1.187, allocations: 6.719 MB / 0.5066 GB, free: 36.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/1.187, allocations: 224 / 0.5066 GB, free: 36.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001739/1.188, allocations: 209.3 kB / 0.5068 GB, free: 36.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006182/1.195, allocations: 1.417 MB / 0.5082 GB, free: 35.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003686/1.195, allocations: 47.45 kB / 0.5083 GB, free: 35.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02851/1.224, allocations: 15.15 MB / 0.5231 GB, free: 21.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/1.224, allocations: 4 kB / 0.5231 GB, free: 21.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/1.237, allocations: 4.806 MB / 0.5278 GB, free: 17.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002015/1.239, allocations: 0.5215 MB / 0.5283 GB, free: 16.58 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009209/1.24, allocations: 51.98 kB / 0.5283 GB, free: 16.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002958/1.243, allocations: 143.9 kB / 0.5285 GB, free: 16.39 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008939/1.244, allocations: 234 kB / 0.5287 GB, free: 16.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002514/1.244, allocations: 51.64 kB / 0.5287 GB, free: 16.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003621/1.248, allocations: 1.366 MB / 0.5301 GB, free: 14.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.248, allocations: 0 / 0.5301 GB, free: 14.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004267/1.252, allocations: 0.7538 MB / 0.5308 GB, free: 13.97 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].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) * 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%) 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.00102/1.253, allocations: 343 kB / 0.5311 GB, free: 13.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009133/1.263, allocations: 3.659 MB / 0.5347 GB, free: 9.914 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/1.263, allocations: 4 kB / 0.5347 GB, free: 9.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005977/1.269, allocations: 2.353 MB / 0.537 GB, free: 7.496 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004154/1.273, allocations: 0.5023 MB / 0.5375 GB, free: 7.023 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01888/1.292, allocations: 7.288 MB / 0.5446 GB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003687/1.295, allocations: 2.249 MB / 0.5468 GB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/1.297, allocations: 139.4 kB / 0.5469 GB, free: 13.33 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/1.297, allocations: 4 kB / 0.5469 GB, free: 13.33 MB / 362.7 MB Notification: Performance of Templates: time 0.4496/1.746, allocations: 115.7 MB / 0.66 GB, free: 20.84 MB / 362.7 MB