Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 2.257/2.257, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005085/0.0005087, allocations: 11.94 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1074, allocations: 44.5 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5147/0.6223, allocations: 104.9 MB / 413.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.6226, allocations: 98.56 kB / 414 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2356/0.8582, allocations: 54.83 MB / 468.8 MB, free: 3.285 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.8583, allocations: 0 / 468.8 MB, free: 3.285 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000363/0.8587, allocations: 75.86 kB / 468.9 MB, free: 3.211 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.01212/0.8708, allocations: 2.954 MB / 471.9 MB, free: 192 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.8709, allocations: 12.03 kB / 471.9 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.8729, allocations: 360 kB / 472.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007266/0.8802, allocations: 1.956 MB / 474.2 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003217/0.8806, allocations: 185 kB / 474.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/0.8819, allocations: 247.9 kB / 474.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/0.8929, allocations: 3.383 MB / 478 MB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/0.8931, allocations: 4 kB / 478 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005121/0.8936, allocations: 108 kB / 478.1 MB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002008/0.8938, allocations: 116.8 kB / 478.2 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009191/0.903, allocations: 2.787 MB / 481 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02951/0.9326, allocations: 10.92 MB / 491.9 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005326/0.938, allocations: 2.47 MB / 494.4 MB, free: 8.949 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004996/0.9385, allocations: 142.4 kB / 494.5 MB, free: 8.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/0.9386, allocations: 51.81 kB / 494.6 MB, free: 8.734 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.288e-06/0.9386, allocations: 0 / 494.6 MB, free: 8.734 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02786/0.9665, allocations: 7.297 MB / 0.4901 GB, free: 1.305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.9666, allocations: 102.4 kB / 0.4902 GB, free: 1.188 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004687/0.9713, allocations: 1.783 MB / 0.492 GB, free: 15.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005609/0.9719, allocations: 53.7 kB / 0.492 GB, free: 15.35 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002517/0.9745, allocations: 1.21 MB / 0.4932 GB, free: 14.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009358/0.9755, allocations: 0.5084 MB / 0.4937 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.9757, allocations: 36 kB / 0.4937 GB, free: 13.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002599/0.976, allocations: 373.9 kB / 0.4941 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002665/0.9787, allocations: 0.8511 MB / 0.4949 GB, free: 12.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003111/0.9818, allocations: 1.313 MB / 0.4962 GB, free: 10.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002988/0.9848, allocations: 1.041 MB / 0.4972 GB, free: 9.801 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.477e-05/0.9849, allocations: 4 kB / 0.4972 GB, free: 9.797 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.009172/0.9941, allocations: 2.86 MB / 0.5 GB, free: 6.914 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004982/0.9946, allocations: 0.494 MB / 0.5005 GB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/0.9947, allocations: 12 kB / 0.5005 GB, free: 6.215 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/0.9975, allocations: 0.6746 MB / 0.5012 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002865/1, allocations: 371.4 kB / 0.5015 GB, free: 5.164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01681/1.017, allocations: 8.499 MB / 0.5098 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002797/1.02, allocations: 123.8 kB / 0.5099 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005352/1.021, allocations: 68 kB / 0.51 GB, free: 12.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/1.021, allocations: 4 kB / 0.51 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00838/1.029, allocations: 2.65 MB / 0.5126 GB, free: 9.398 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-05/1.029, allocations: 12 kB / 0.5126 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002824/1.032, allocations: 0.6635 MB / 0.5132 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/1.035, allocations: 367.4 kB / 0.5136 GB, free: 8.352 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3199/1.355, allocations: 8.496 MB / 0.5219 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002524/1.358, allocations: 105.5 kB / 0.522 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003384/1.358, allocations: 74.55 kB / 0.5221 GB, free: 101.1 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.00247/1.36, allocations: 0.9251 MB / 0.523 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006721/1.361, allocations: 204.4 kB / 0.5232 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007262/1.368, allocations: 2.58 MB / 0.5257 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.638e-05/1.368, allocations: 16.53 kB / 0.5257 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/1.368, allocations: 6.891 kB / 0.5257 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/1.369, allocations: 10.77 kB / 0.5257 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01657/1.385, allocations: 5.414 MB / 0.531 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/1.385, allocations: 3.438 kB / 0.531 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/1.387, allocations: 234.4 kB / 0.5312 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002889/1.39, allocations: 0.6964 MB / 0.5319 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002662/1.39, allocations: 36.77 kB / 0.5319 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02391/1.414, allocations: 10.02 MB / 0.5417 GB, free: 95.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/1.414, allocations: 6.703 kB / 0.5417 GB, free: 95.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01499/1.429, allocations: 3.808 MB / 0.5455 GB, free: 94.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/1.432, allocations: 475.8 kB / 0.5459 GB, free: 94.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000754/1.433, allocations: 31.56 kB / 0.5459 GB, free: 94.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003029/1.436, allocations: 101.7 kB / 0.546 GB, free: 94.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008158/1.437, allocations: 122.9 kB / 0.5462 GB, free: 94.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002707/1.437, allocations: 44.05 kB / 0.5462 GB, free: 94.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004592/1.441, allocations: 1.219 MB / 0.5474 GB, free: 94.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.503e-06/1.442, allocations: 0 / 0.5474 GB, free: 94.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008605/1.45, allocations: 1.039 MB / 0.5484 GB, free: 94.62 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.00144/1.452, allocations: 429.8 kB / 0.5488 GB, free: 94.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01633/1.468, allocations: 4.541 MB / 0.5532 GB, free: 93.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/1.468, allocations: 0 / 0.5532 GB, free: 93.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005952/1.474, allocations: 1.756 MB / 0.555 GB, free: 93.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006638/1.481, allocations: 0.5788 MB / 0.5555 GB, free: 92.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/1.507, allocations: 6.848 MB / 0.5622 GB, free: 89.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005471/1.512, allocations: 2.148 MB / 0.5643 GB, free: 88.63 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005171/1.517, allocations: 0.5998 MB / 0.5649 GB, free: 88.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/1.519, allocations: 133.1 kB / 0.565 GB, free: 88.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.663e-06/1.519, allocations: 0 / 0.565 GB, free: 88.57 MB / 410.7 MB Notification: Performance of Templates: time 0.1373/1.656, allocations: 41.62 MB / 0.6057 GB, free: 70.08 MB / 410.7 MB