Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.967/1.967, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003765/0.0003765, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09987, allocations: 44.49 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.529/0.6289, allocations: 109.6 MB / 418.6 MB, free: 9.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000318/0.6293, allocations: 92.19 kB / 418.7 MB, free: 9.965 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3056/0.935, allocations: 76.75 MB / 495.4 MB, free: 8.934 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.9351, allocations: 3.938 kB / 495.4 MB, free: 8.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004676/0.9355, allocations: 83.94 kB / 495.5 MB, free: 8.848 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.01628/0.9518, allocations: 3.544 MB / 499 MB, free: 5.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/0.9519, allocations: 16.02 kB / 499.1 MB, free: 5.215 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004855/0.9568, allocations: 0.5936 MB / 499.7 MB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01343/0.9703, allocations: 3.166 MB / 0.491 GB, free: 1.395 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004189/0.9707, allocations: 242.2 kB / 0.4913 GB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/0.9723, allocations: 307.9 kB / 0.4916 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/0.9874, allocations: 4.136 MB / 0.4956 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001627/0.9876, allocations: 7.984 kB / 0.4956 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00102/0.9887, allocations: 136 kB / 0.4957 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002187/0.9889, allocations: 138.1 kB / 0.4959 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01223/1.001, allocations: 3.358 MB / 0.4992 GB, free: 8.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04138/1.043, allocations: 13.81 MB / 0.5126 GB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/1.053, allocations: 5.935 MB / 0.5184 GB, free: 4.055 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01108/1.064, allocations: 3.241 MB / 0.5216 GB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.552e-05/1.064, allocations: 47.88 kB / 0.5216 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 5.2e-06/1.064, allocations: 0 / 0.5216 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.3086/1.373, allocations: 6.785 MB / 0.5283 GB, free: 86.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/1.373, allocations: 92.52 kB / 0.5284 GB, free: 86.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004884/1.378, allocations: 1.902 MB / 0.5302 GB, free: 86.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003765/1.379, allocations: 50.64 kB / 0.5303 GB, free: 86.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/1.38, allocations: 1.365 MB / 0.5316 GB, free: 86.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007797/1.381, allocations: 0.4915 MB / 0.5321 GB, free: 85.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/1.381, allocations: 34.84 kB / 0.5321 GB, free: 85.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/1.381, allocations: 386.4 kB / 0.5325 GB, free: 85.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002126/1.383, allocations: 0.7633 MB / 0.5332 GB, free: 85.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002352/1.386, allocations: 1.286 MB / 0.5345 GB, free: 84.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002586/1.388, allocations: 0.9468 MB / 0.5354 GB, free: 84.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-05/1.388, allocations: 4.781 kB / 0.5354 GB, free: 84.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01043/1.399, allocations: 2.677 MB / 0.538 GB, free: 84.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005344/1.399, allocations: 0.5505 MB / 0.5386 GB, free: 84.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.686e-05/1.399, allocations: 15.88 kB / 0.5386 GB, free: 84.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002955/1.402, allocations: 0.5214 MB / 0.5391 GB, free: 84.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004075/1.406, allocations: 371 kB / 0.5394 GB, free: 84.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01687/1.423, allocations: 7.408 MB / 0.5467 GB, free: 80.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004158/1.428, allocations: 95.94 kB / 0.5468 GB, free: 80.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005891/1.428, allocations: 75.02 kB / 0.5468 GB, free: 80.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/1.428, allocations: 3.844 kB / 0.5468 GB, free: 80.03 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01044/1.439, allocations: 2.57 MB / 0.5494 GB, free: 79.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.676e-05/1.439, allocations: 15.56 kB / 0.5494 GB, free: 79.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002681/1.442, allocations: 0.5155 MB / 0.5499 GB, free: 79.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003934/1.446, allocations: 371.2 kB / 0.5502 GB, free: 79.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/1.462, allocations: 7.467 MB / 0.5575 GB, free: 75.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002434/1.464, allocations: 86.02 kB / 0.5576 GB, free: 75.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005368/1.465, allocations: 79.75 kB / 0.5577 GB, free: 75.85 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.004462/1.469, allocations: 1.064 MB / 0.5587 GB, free: 75.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/1.47, allocations: 209.9 kB / 0.5589 GB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/1.481, allocations: 2.539 MB / 0.5614 GB, free: 75.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.221e-05/1.481, allocations: 16.09 kB / 0.5614 GB, free: 75.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.413e-05/1.481, allocations: 4.469 kB / 0.5614 GB, free: 75.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.402e-05/1.481, allocations: 7.5 kB / 0.5614 GB, free: 75.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02296/1.504, allocations: 5.46 MB / 0.5668 GB, free: 74.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.688e-05/1.504, allocations: 3.531 kB / 0.5668 GB, free: 74.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002236/1.506, allocations: 197.2 kB / 0.5669 GB, free: 74.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003722/1.51, allocations: 0.6623 MB / 0.5676 GB, free: 74.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000408/1.511, allocations: 35.95 kB / 0.5676 GB, free: 74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02373/1.534, allocations: 11.52 MB / 0.5789 GB, free: 65.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.534, allocations: 2.906 kB / 0.5789 GB, free: 65.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01314/1.548, allocations: 3.689 MB / 0.5825 GB, free: 63.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/1.55, allocations: 477.2 kB / 0.5829 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/1.551, allocations: 28.94 kB / 0.583 GB, free: 62.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003429/1.555, allocations: 84.16 kB / 0.583 GB, free: 62.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008777/1.556, allocations: 121.3 kB / 0.5832 GB, free: 62.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002889/1.556, allocations: 48.2 kB / 0.5832 GB, free: 62.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004932/1.561, allocations: 1.292 MB / 0.5845 GB, free: 62.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.382e-06/1.561, allocations: 0 / 0.5845 GB, free: 62.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009648/1.571, allocations: 1.111 MB / 0.5856 GB, free: 62.19 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.001439/1.572, allocations: 465.5 kB / 0.586 GB, free: 62.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01447/1.587, allocations: 4.237 MB / 0.5901 GB, free: 59.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.752e-05/1.587, allocations: 3.938 kB / 0.5901 GB, free: 59.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006198/1.593, allocations: 1.812 MB / 0.5919 GB, free: 58.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00675/1.6, allocations: 0.5964 MB / 0.5925 GB, free: 58.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/1.625, allocations: 7.117 MB / 0.5994 GB, free: 54.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005186/1.63, allocations: 2.344 MB / 0.6017 GB, free: 53.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001302/1.632, allocations: 147.3 kB / 0.6019 GB, free: 53.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.632, allocations: 0 / 0.6019 GB, free: 53.73 MB / 410.7 MB Notification: Performance of Templates: time 0.5678/2.2, allocations: 106.3 MB / 0.7057 GB, free: 82.2 MB / 410.7 MB