Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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.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.886/1.886, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003497, allocations: 8 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07822/0.07859, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01923/0.09786, allocations: 12.73 MB / 321.1 MB, free: 4.238 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.1093, allocations: 4.899 MB / 326 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002908/0.1122, allocations: 75.69 kB / 326.1 MB, free: 15.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003416/0.1157, allocations: 0.9055 MB / 327 MB, free: 14.34 MB / 282.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Electrical/PowerConverters.mo:5426:20-5426:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Electrical/PowerConverters.mo:5437:20-5437:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFTyping.typeBindings: time 0.005758/0.1215, allocations: 1.382 MB / 328.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003047/0.1245, allocations: 0.6977 MB / 329.1 MB, free: 12.26 MB / 282.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Electrical/PowerConverters.mo:5426:20-5426:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Electrical/PowerConverters.mo:5437:20-5437:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFFlatten.flatten: time 0.00615/0.1307, allocations: 2.731 MB / 331.8 MB, free: 9.523 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00394/0.1347, allocations: 2.147 MB / 333.9 MB, free: 7.34 MB / 282.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Electrical/PowerConverters.mo:5426:20-5426:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Electrical/PowerConverters.mo:5437:20-5437:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.1372, allocations: 1.257 MB / 335.2 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002725/0.14, allocations: 1.513 MB / 336.7 MB, free: 4.559 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006421/0.1407, allocations: 204 kB / 336.9 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001777/0.1425, allocations: 363.7 kB / 337.3 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001345/0.1438, allocations: 0.767 MB / 338 MB, free: 3.234 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001293/0.1452, allocations: 0.7343 MB / 338.8 MB, free: 2.492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007893/0.1531, allocations: 5.212 MB / 344 MB, free: 13.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.122e-06/0.1531, allocations: 0 / 344 MB, free: 13.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.86e-06/0.1531, allocations: 0 / 344 MB, free: 13.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001182/0.1533, allocations: 0 / 344 MB, free: 13.27 MB / 298.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.01078/0.1641, allocations: 3.68 MB / 347.7 MB, free: 9.512 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1641, allocations: 12.03 kB / 347.7 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004096/0.1682, allocations: 0.628 MB / 348.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005402/0.1737, allocations: 2.106 MB / 350.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002795/0.174, allocations: 238.2 kB / 350.6 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007288/0.1747, allocations: 303.9 kB / 350.9 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01036/0.1851, allocations: 4.158 MB / 355.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001002/0.1853, allocations: 7.938 kB / 355.1 MB, free: 1.922 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004273/0.1857, allocations: 128 kB / 355.2 MB, free: 1.797 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001926/0.1859, allocations: 150 kB / 355.4 MB, free: 1.648 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/0.1959, allocations: 3.533 MB / 358.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2382/0.4342, allocations: 13.77 MB / 372.7 MB, free: 54.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006909/0.4411, allocations: 5.883 MB / 378.5 MB, free: 50.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008077/0.4493, allocations: 3.206 MB / 381.8 MB, free: 49.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.4493, allocations: 46.91 kB / 381.8 MB, free: 49.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=143): time 5.486e-06/0.4494, allocations: 3.844 kB / 381.8 MB, free: 49.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01656/0.4659, allocations: 6.735 MB / 388.5 MB, free: 46.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.466, allocations: 103.8 kB / 388.6 MB, free: 46.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/0.4693, allocations: 1.874 MB / 390.5 MB, free: 45.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002262/0.4696, allocations: 49.64 kB / 390.6 MB, free: 45.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008053/0.4704, allocations: 1.368 MB / 391.9 MB, free: 44.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004287/0.4709, allocations: 0.4925 MB / 392.4 MB, free: 44.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.471, allocations: 39.84 kB / 392.5 MB, free: 44.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4711, allocations: 377.2 kB / 392.8 MB, free: 43.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.4728, allocations: 0.771 MB / 393.6 MB, free: 43.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/0.4747, allocations: 1.296 MB / 394.9 MB, free: 42.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/0.4766, allocations: 0.9526 MB / 395.9 MB, free: 42.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.4767, allocations: 3.938 kB / 395.9 MB, free: 42.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005432/0.4821, allocations: 2.63 MB / 398.5 MB, free: 40.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002598/0.4824, allocations: 0.5681 MB / 399.1 MB, free: 39.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.4825, allocations: 18.06 kB / 399.1 MB, free: 39.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/0.484, allocations: 0.5132 MB / 399.6 MB, free: 39.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/0.4859, allocations: 385.8 kB / 400 MB, free: 39.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008713/0.4947, allocations: 7.402 MB / 407.4 MB, free: 33.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001932/0.4967, allocations: 98.66 kB / 407.5 MB, free: 33.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.4968, allocations: 84.12 kB / 407.5 MB, free: 33.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.649e-06/0.4969, allocations: 3.688 kB / 407.5 MB, free: 33.3 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004897/0.5018, allocations: 2.528 MB / 410.1 MB, free: 31.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.059e-05/0.5018, allocations: 16 kB / 410.1 MB, free: 31.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.5031, allocations: 0.5145 MB / 410.6 MB, free: 30.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/0.5049, allocations: 375.4 kB / 411 MB, free: 30.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00824/0.5132, allocations: 7.456 MB / 418.4 MB, free: 22.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.5144, allocations: 83.94 kB / 418.5 MB, free: 22.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.5146, allocations: 72 kB / 418.6 MB, free: 22.53 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (193): * Single equations (assignments): 189 * 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.002134/0.5167, allocations: 1.083 MB / 419.7 MB, free: 21.44 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004681/0.5172, allocations: 209.4 kB / 419.9 MB, free: 21.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004771/0.522, allocations: 2.539 MB / 422.4 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.522, allocations: 16 kB / 422.4 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.522, allocations: 7.953 kB / 422.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-05/0.5221, allocations: 3.984 kB / 422.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009997/0.5321, allocations: 5.378 MB / 427.8 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.5321, allocations: 7.969 kB / 427.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.5333, allocations: 195.8 kB / 428 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001919/0.5352, allocations: 0.6522 MB / 428.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/0.5354, allocations: 39.94 kB / 428.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01314/0.5485, allocations: 11.51 MB / 440.2 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.628e-06/0.5486, allocations: 0 / 440.2 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008108/0.5567, allocations: 3.695 MB / 443.9 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/0.5582, allocations: 466.9 kB / 444.4 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003722/0.5586, allocations: 31.98 kB / 444.4 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.5598, allocations: 82.66 kB / 444.5 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/0.5602, allocations: 129 kB / 444.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.5604, allocations: 36 kB / 444.6 MB, free: 11.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002685/0.5631, allocations: 1.282 MB / 445.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.013e-06/0.5631, allocations: 0 / 445.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00481/0.5679, allocations: 1.052 MB / 447 MB, free: 9.137 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,inertiaLoad.phi) * 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.0004517/0.5684, allocations: 161.5 kB / 447.1 MB, free: 8.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008982/0.5774, allocations: 4.256 MB / 451.4 MB, free: 4.605 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.602e-06/0.5775, allocations: 0 / 451.4 MB, free: 4.605 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003802/0.5813, allocations: 1.819 MB / 453.2 MB, free: 2.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003228/0.5846, allocations: 0.5897 MB / 453.8 MB, free: 2.145 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/0.5998, allocations: 7.073 MB / 460.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003254/0.6031, allocations: 2.342 MB / 463.2 MB, free: 8.648 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007183/0.6038, allocations: 147.4 kB / 463.3 MB, free: 8.504 MB / 346.7 MB Notification: Performance of SimCode: time 2.226e-06/0.6038, allocations: 0 / 463.3 MB, free: 8.504 MB / 346.7 MB Notification: Performance of Templates: time 0.3498/0.9537, allocations: 104.6 MB / 0.5546 GB, free: 92.5 MB / 394.7 MB