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.SMPM_Braking.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.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.000354, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07857/0.07895, allocations: 44.51 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3575/0.4365, allocations: 104.9 MB / 413.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.4368, allocations: 93 kB / 413.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2066/0.6434, allocations: 54.84 MB / 468.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.914e-06/0.6435, allocations: 0 / 468.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003025/0.6438, allocations: 75.86 kB / 468.3 MB, free: 5.727 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: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.009198/0.653, allocations: 2.954 MB / 471.3 MB, free: 2.703 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.653, allocations: 8.031 kB / 471.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/0.6547, allocations: 360 kB / 471.6 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005758/0.6604, allocations: 1.953 MB / 473.6 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.6607, allocations: 189 kB / 473.8 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008087/0.6616, allocations: 259.9 kB / 474 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009158/0.6707, allocations: 3.379 MB / 477.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.028e-05/0.6709, allocations: 0 / 477.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004023/0.6713, allocations: 116 kB / 477.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.6715, allocations: 108.8 kB / 477.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008246/0.6797, allocations: 2.791 MB / 480.4 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02557/0.7053, allocations: 10.91 MB / 491.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004528/0.7099, allocations: 2.474 MB / 493.8 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003934/0.7103, allocations: 138.4 kB / 493.9 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.651e-05/0.7104, allocations: 51.83 kB / 494 MB, free: 11.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.965e-06/0.7104, allocations: 4 kB / 494 MB, free: 11.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02174/0.7322, allocations: 7.299 MB / 0.4895 GB, free: 3.824 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.154e-05/0.7323, allocations: 98.42 kB / 0.4896 GB, free: 3.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003534/0.7359, allocations: 1.587 MB / 0.4912 GB, free: 2.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003111/0.7362, allocations: 49.7 kB / 0.4912 GB, free: 2.074 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001151/0.7374, allocations: 1.143 MB / 0.4923 GB, free: 0.918 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007344/0.7381, allocations: 0.5045 MB / 0.4928 GB, free: 416 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.7383, allocations: 36 kB / 0.4929 GB, free: 380 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002807/0.7386, allocations: 382.7 kB / 0.4932 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.7406, allocations: 0.855 MB / 0.4941 GB, free: 15.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002456/0.743, allocations: 1.313 MB / 0.4954 GB, free: 13.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002334/0.7454, allocations: 1.029 MB / 0.4964 GB, free: 12.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.7454, allocations: 8 kB / 0.4964 GB, free: 12.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.00657/0.752, allocations: 2.749 MB / 0.4991 GB, free: 9.824 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003078/0.7551, allocations: 5.401 MB / 0.5043 GB, free: 3.996 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.64e-05/0.7552, allocations: 16 kB / 0.5043 GB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002445/0.7577, allocations: 0.6668 MB / 0.505 GB, free: 3.301 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002057/0.7597, allocations: 371.4 kB / 0.5053 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/0.7737, allocations: 8.493 MB / 0.5136 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/0.7759, allocations: 115.9 kB / 0.5138 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002539/0.7762, allocations: 68 kB / 0.5138 GB, free: 9.859 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.7762, allocations: 5.188 kB / 0.5138 GB, free: 9.855 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006566/0.7828, allocations: 2.658 MB / 0.5164 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.376e-05/0.7829, allocations: 12 kB / 0.5164 GB, free: 7.172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001986/0.7849, allocations: 0.6595 MB / 0.5171 GB, free: 6.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/0.7869, allocations: 363.4 kB / 0.5174 GB, free: 6.145 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2373/1.024, allocations: 8.539 MB / 0.5258 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/1.026, allocations: 104.5 kB / 0.5259 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/1.026, allocations: 67.47 kB / 0.5259 GB, free: 100.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * 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: 3 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002017/1.028, allocations: 0.9306 MB / 0.5268 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005482/1.028, allocations: 200.2 kB / 0.527 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005699/1.034, allocations: 2.588 MB / 0.5295 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-05/1.034, allocations: 18.8 kB / 0.5296 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/1.034, allocations: 9.734 kB / 0.5296 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/1.034, allocations: 6.469 kB / 0.5296 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/1.047, allocations: 5.419 MB / 0.5349 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/1.047, allocations: 0 / 0.5349 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/1.048, allocations: 236.7 kB / 0.5351 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/1.051, allocations: 0.6937 MB / 0.5358 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000209/1.051, allocations: 34.78 kB / 0.5358 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/1.064, allocations: 10.03 MB / 0.5456 GB, free: 94.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/1.064, allocations: 7.734 kB / 0.5456 GB, free: 94.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007487/1.072, allocations: 3.96 MB / 0.5495 GB, free: 94.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.073, allocations: 479.2 kB / 0.5499 GB, free: 94.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004478/1.074, allocations: 28.06 kB / 0.55 GB, free: 94.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/1.075, allocations: 102.7 kB / 0.5501 GB, free: 94.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/1.076, allocations: 119.6 kB / 0.5502 GB, free: 94.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/1.076, allocations: 45.31 kB / 0.5502 GB, free: 94.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002527/1.078, allocations: 1.217 MB / 0.5514 GB, free: 94.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.8e-07/1.078, allocations: 0 / 0.5514 GB, free: 94.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004653/1.083, allocations: 1.042 MB / 0.5524 GB, free: 94.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007453/1.084, allocations: 418.7 kB / 0.5528 GB, free: 94.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00803/1.092, allocations: 4.545 MB / 0.5573 GB, free: 92.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.493e-06/1.092, allocations: 2.594 kB / 0.5573 GB, free: 92.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002867/1.095, allocations: 1.758 MB / 0.559 GB, free: 91.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003163/1.098, allocations: 0.5723 MB / 0.5595 GB, free: 91.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/1.111, allocations: 6.874 MB / 0.5663 GB, free: 88.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/1.113, allocations: 2.127 MB / 0.5683 GB, free: 87.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000723/1.114, allocations: 136.9 kB / 0.5685 GB, free: 87.35 MB / 410.7 MB Notification: Performance of SimCode: time 1.619e-06/1.114, allocations: 7.172 kB / 0.5685 GB, free: 87.35 MB / 410.7 MB Notification: Performance of Templates: time 0.09464/1.209, allocations: 83.17 MB / 0.6497 GB, free: 26.46 MB / 410.7 MB