Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 194.8 MB / 211.7 MB, free: 2.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003492, allocations: 12 kB / 264.6 MB, free: 12.9 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.098/0.09837, allocations: 44.5 MB / 309.1 MB, free: 340 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4872/0.5856, allocations: 109.6 MB / 418.6 MB, free: 9.992 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.586, allocations: 97.42 kB / 418.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3003/0.8863, allocations: 76.76 MB / 495.5 MB, free: 8.227 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.047e-06/0.8863, allocations: 0 / 495.5 MB, free: 8.227 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006878/0.887, allocations: 83.94 kB / 495.6 MB, free: 8.145 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.01873/0.9058, allocations: 3.544 MB / 499.1 MB, free: 4.527 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.9059, allocations: 8.031 kB / 499.1 MB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004837/0.9107, allocations: 0.6014 MB / 499.7 MB, free: 3.914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01327/0.924, allocations: 3.17 MB / 0.4911 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000428/0.9245, allocations: 234.2 kB / 0.4913 GB, free: 468 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001452/0.926, allocations: 307.9 kB / 0.4916 GB, free: 160 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.9411, allocations: 4.12 MB / 0.4957 GB, free: 11.87 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000135/0.9413, allocations: 3.938 kB / 0.4957 GB, free: 11.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007139/0.9421, allocations: 132 kB / 0.4958 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002351/0.9423, allocations: 138.1 kB / 0.4959 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.9545, allocations: 3.35 MB / 0.4992 GB, free: 8.242 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04024/0.9948, allocations: 13.82 MB / 0.5127 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0102/1.005, allocations: 5.932 MB / 0.5185 GB, free: 3.383 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01064/1.016, allocations: 3.244 MB / 0.5217 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/1.016, allocations: 47.88 kB / 0.5217 GB, free: 16 kB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 4.98e-06/1.016, allocations: 0 / 0.5217 GB, free: 16 kB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.2978/1.314, allocations: 6.792 MB / 0.5283 GB, free: 87.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/1.314, allocations: 93.45 kB / 0.5284 GB, free: 87.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004595/1.318, allocations: 1.899 MB / 0.5303 GB, free: 87.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003605/1.319, allocations: 55.73 kB / 0.5303 GB, free: 87.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/1.32, allocations: 1.437 MB / 0.5317 GB, free: 86.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007828/1.321, allocations: 0.4937 MB / 0.5322 GB, free: 86.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/1.321, allocations: 33.22 kB / 0.5322 GB, free: 86.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/1.321, allocations: 378.3 kB / 0.5326 GB, free: 86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/1.323, allocations: 0.7601 MB / 0.5333 GB, free: 86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002402/1.326, allocations: 1.279 MB / 0.5346 GB, free: 85.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/1.328, allocations: 0.9527 MB / 0.5355 GB, free: 85.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.359e-05/1.329, allocations: 4.938 kB / 0.5355 GB, free: 85.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008439/1.337, allocations: 2.804 MB / 0.5383 GB, free: 85.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003684/1.337, allocations: 0.5522 MB / 0.5388 GB, free: 84.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.264e-05/1.337, allocations: 18.09 kB / 0.5388 GB, free: 84.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002131/1.34, allocations: 0.5233 MB / 0.5393 GB, free: 84.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002926/1.343, allocations: 371.6 kB / 0.5397 GB, free: 84.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/1.354, allocations: 7.4 MB / 0.5469 GB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/1.357, allocations: 96.12 kB / 0.547 GB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/1.357, allocations: 73.48 kB / 0.5471 GB, free: 80.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/1.357, allocations: 7.438 kB / 0.5471 GB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006612/1.364, allocations: 2.572 MB / 0.5496 GB, free: 80.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.027e-05/1.364, allocations: 14.88 kB / 0.5496 GB, free: 80.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001883/1.366, allocations: 0.5292 MB / 0.5501 GB, free: 80.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002778/1.369, allocations: 370.1 kB / 0.5505 GB, free: 80.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/1.379, allocations: 7.397 MB / 0.5577 GB, free: 76.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002637/1.382, allocations: 93.67 kB / 0.5578 GB, free: 76.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003642/1.382, allocations: 74.59 kB / 0.5579 GB, free: 76.24 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (191): * Single equations (assignments): 187 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002819/1.385, allocations: 1.07 MB / 0.5589 GB, free: 76.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007152/1.386, allocations: 206.1 kB / 0.5591 GB, free: 75.94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006314/1.392, allocations: 2.541 MB / 0.5616 GB, free: 75.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/1.392, allocations: 14.25 kB / 0.5616 GB, free: 75.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/1.392, allocations: 3.312 kB / 0.5616 GB, free: 75.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/1.392, allocations: 7.688 kB / 0.5616 GB, free: 75.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/1.405, allocations: 5.462 MB / 0.5669 GB, free: 74.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/1.405, allocations: 6.656 kB / 0.567 GB, free: 74.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/1.407, allocations: 194.4 kB / 0.5671 GB, free: 74.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002466/1.409, allocations: 0.6588 MB / 0.5678 GB, free: 74.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001839/1.41, allocations: 39.17 kB / 0.5678 GB, free: 74.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01517/1.425, allocations: 11.52 MB / 0.5791 GB, free: 65.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.425, allocations: 10.2 kB / 0.5791 GB, free: 65.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008099/1.433, allocations: 3.686 MB / 0.5827 GB, free: 63.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/1.434, allocations: 478.2 kB / 0.5831 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005328/1.435, allocations: 31.12 kB / 0.5832 GB, free: 63.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/1.437, allocations: 86.83 kB / 0.5833 GB, free: 63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/1.437, allocations: 119.2 kB / 0.5834 GB, free: 62.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/1.437, allocations: 42.05 kB / 0.5834 GB, free: 62.97 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002676/1.44, allocations: 1.296 MB / 0.5847 GB, free: 62.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.44, allocations: 1.312 kB / 0.5847 GB, free: 62.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005709/1.446, allocations: 1.121 MB / 0.5858 GB, free: 62.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (96): * Single equations (assignments): 91 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009285/1.447, allocations: 471.2 kB / 0.5862 GB, free: 62.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008788/1.456, allocations: 4.236 MB / 0.5904 GB, free: 60.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/1.456, allocations: 4.125 kB / 0.5904 GB, free: 60.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003729/1.459, allocations: 1.817 MB / 0.5921 GB, free: 59.03 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00433/1.464, allocations: 0.5903 MB / 0.5927 GB, free: 58.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/1.479, allocations: 7.112 MB / 0.5997 GB, free: 54.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/1.482, allocations: 2.371 MB / 0.602 GB, free: 53.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003468/1.486, allocations: 0.5362 MB / 0.6025 GB, free: 53.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006561/1.486, allocations: 134.2 kB / 0.6026 GB, free: 53.81 MB / 410.7 MB Notification: Performance of SimCode: time 1.322e-06/1.486, allocations: 0 / 0.6026 GB, free: 53.81 MB / 410.7 MB Notification: Performance of Templates: time 0.1042/1.591, allocations: 40.8 MB / 0.6425 GB, free: 31.57 MB / 410.7 MB