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 2.108/2.108, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.138e-05/3.133e-05, allocations: 7.984 kB / 258.8 MB, free: 8.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3116, allocations: 44.49 MB / 303.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.02187/0.3335, allocations: 12.32 MB / 315.6 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01257/0.3462, allocations: 4.473 MB / 320.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003201/0.3494, allocations: 111.6 kB / 320.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003678/0.3532, allocations: 0.8001 MB / 321 MB, free: 11.91 MB / 266.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.006651/0.3599, allocations: 1.246 MB / 322.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003618/0.3635, allocations: 0.6789 MB / 322.9 MB, free: 9.977 MB / 266.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.006769/0.3703, allocations: 2.118 MB / 325 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003913/0.3742, allocations: 1.592 MB / 326.6 MB, free: 6.25 MB / 266.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.002915/0.3772, allocations: 1.013 MB / 327.6 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003487/0.3807, allocations: 1.289 MB / 328.9 MB, free: 3.941 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002083/0.3829, allocations: 283.7 kB / 329.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009532/0.3839, allocations: 128 kB / 329.3 MB, free: 3.539 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001209/0.3851, allocations: 0.6811 MB / 330 MB, free: 2.855 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001444/0.3866, allocations: 304 kB / 330.3 MB, free: 2.559 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009062/0.3957, allocations: 5.189 MB / 335.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3957, allocations: 4 kB / 335.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.3957, allocations: 0 / 335.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002313/0.396, allocations: 0 / 335.5 MB, free: 13.35 MB / 282.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.01339/0.4094, allocations: 3.383 MB / 338.9 MB, free: 9.898 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.4094, allocations: 8.031 kB / 338.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00527/0.4147, allocations: 0.6319 MB / 339.5 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00709/0.4219, allocations: 2.114 MB / 341.6 MB, free: 7.086 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003791/0.4223, allocations: 234.2 kB / 341.9 MB, free: 6.855 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/0.4237, allocations: 308 kB / 342.2 MB, free: 6.555 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.4381, allocations: 4.118 MB / 346.3 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.4383, allocations: 15.84 kB / 346.3 MB, free: 2.332 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007629/0.4391, allocations: 128 kB / 346.4 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002276/0.4394, allocations: 146 kB / 346.6 MB, free: 2.062 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01235/0.4517, allocations: 3.53 MB / 350.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03668/0.4884, allocations: 13.74 MB / 363.8 MB, free: 424 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009538/0.498, allocations: 5.874 MB / 369.7 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009985/0.5081, allocations: 3.17 MB / 372.9 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/0.5082, allocations: 51.86 kB / 372.9 MB, free: 6.516 MB / 314.7 MB Notification: Performance of pre-optimization done (n=142): time 4.599e-06/0.5082, allocations: 0 / 372.9 MB, free: 6.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=146): time 0.0244/0.5326, allocations: 6.687 MB / 379.6 MB, free: 15.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.5327, allocations: 94.42 kB / 379.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004096/0.5369, allocations: 1.63 MB / 381.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000319/0.5372, allocations: 49.7 kB / 381.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.5386, allocations: 1.388 MB / 382.8 MB, free: 12.4 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007891/0.5395, allocations: 496.8 kB / 383.3 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.5396, allocations: 36 kB / 383.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002243/0.5399, allocations: 382.8 kB / 383.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002256/0.5421, allocations: 0.7535 MB / 384.4 MB, free: 10.74 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002782/0.545, allocations: 1.294 MB / 385.7 MB, free: 9.207 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002955/0.548, allocations: 0.9472 MB / 386.7 MB, free: 8.262 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/0.548, allocations: 7.938 kB / 386.7 MB, free: 8.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007994/0.556, allocations: 2.625 MB / 389.3 MB, free: 5.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003378/0.5595, allocations: 6.444 MB / 395.8 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.32e-05/0.5596, allocations: 16 kB / 395.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/0.5619, allocations: 0.5185 MB / 396.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003003/0.5649, allocations: 383.4 kB / 396.7 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/0.5785, allocations: 7.4 MB / 404.1 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/0.581, allocations: 91.84 kB / 404.1 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000283/0.5813, allocations: 79.98 kB / 404.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.5813, allocations: 4 kB / 404.2 MB, free: 5.738 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007235/0.5886, allocations: 2.52 MB / 406.8 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.586e-05/0.5887, allocations: 24.06 kB / 406.8 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001941/0.5906, allocations: 0.5031 MB / 407.3 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002842/0.5935, allocations: 379.4 kB / 407.6 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/0.6078, allocations: 7.466 MB / 415.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.6098, allocations: 83.94 kB / 415.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003109/0.6102, allocations: 72 kB / 415.3 MB, free: 10.26 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 () * 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.003152/0.6133, allocations: 0.9932 MB / 416.3 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007084/0.6141, allocations: 209.5 kB / 416.5 MB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008082/0.6222, allocations: 2.521 MB / 419 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/0.6222, allocations: 12 kB / 419 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/0.6223, allocations: 4 kB / 419 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.886e-05/0.6223, allocations: 7.969 kB / 419 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/0.6386, allocations: 5.328 MB / 424.3 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/0.6387, allocations: 4 kB / 424.3 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001824/0.6405, allocations: 192 kB / 424.5 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002847/0.6434, allocations: 0.6522 MB / 425.2 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002807/0.6437, allocations: 31.94 kB / 425.2 MB, free: 68 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2965/0.9402, allocations: 11.45 MB / 436.7 MB, free: 96.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.9402, allocations: 11.75 kB / 436.7 MB, free: 96.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008358/0.9486, allocations: 3.778 MB / 440.4 MB, free: 94.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/0.9501, allocations: 463.8 kB / 440.9 MB, free: 94.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007755/0.9509, allocations: 31.34 kB / 440.9 MB, free: 94.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002101/0.953, allocations: 87.58 kB / 441 MB, free: 94.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005181/0.9536, allocations: 123.5 kB / 441.1 MB, free: 94.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.9538, allocations: 39.72 kB / 441.2 MB, free: 94.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002891/0.9567, allocations: 1.249 MB / 442.4 MB, free: 93.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.9567, allocations: 0 / 442.4 MB, free: 93.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005289/0.962, allocations: 1.051 MB / 443.5 MB, free: 93.75 MB / 362.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 90 * 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.0005901/0.9627, allocations: 160.5 kB / 443.6 MB, free: 93.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009093/0.9718, allocations: 4.234 MB / 447.9 MB, free: 91.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.9718, allocations: 0 / 447.9 MB, free: 91.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003831/0.9757, allocations: 1.808 MB / 449.7 MB, free: 89.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004272/0.98, allocations: 0.6023 MB / 450.3 MB, free: 88.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/0.9953, allocations: 7.034 MB / 457.3 MB, free: 82.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002721/0.998, allocations: 2.338 MB / 459.6 MB, free: 79.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008302/0.9989, allocations: 143.4 kB / 459.8 MB, free: 79.51 MB / 362.7 MB Notification: Performance of SimCode: time 3.226e-06/0.9989, allocations: 0 / 459.8 MB, free: 79.51 MB / 362.7 MB Notification: Performance of Templates: time 0.1634/1.162, allocations: 104.4 MB / 0.551 GB, free: 6.926 MB / 394.7 MB