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.727/1.727, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003625, allocations: 15.98 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07949/0.07987, allocations: 44.5 MB / 308.5 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3714/0.4513, allocations: 109.6 MB / 418 MB, free: 11.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.4516, allocations: 99.62 kB / 418.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2783/0.7299, allocations: 76.77 MB / 494.9 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.7299, allocations: 0 / 494.9 MB, free: 10.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003409/0.7303, allocations: 83.94 kB / 495 MB, free: 10.65 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.01288/0.7432, allocations: 3.544 MB / 498.5 MB, free: 7.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.7433, allocations: 11.97 kB / 498.5 MB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004233/0.7475, allocations: 0.6014 MB / 499.2 MB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01788/0.7654, allocations: 3.162 MB / 0.4905 GB, free: 3.199 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005085/0.766, allocations: 230.2 kB / 0.4908 GB, free: 2.973 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001647/0.7677, allocations: 311.9 kB / 0.4911 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01986/0.7876, allocations: 4.12 MB / 0.4951 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002065/0.7878, allocations: 0 / 0.4951 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001287/0.7891, allocations: 135.9 kB / 0.4952 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003101/0.7895, allocations: 138.1 kB / 0.4953 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01682/0.8063, allocations: 3.35 MB / 0.4986 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03539/0.8418, allocations: 13.83 MB / 0.5121 GB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008112/0.8499, allocations: 5.924 MB / 0.5179 GB, free: 5.898 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008789/0.8588, allocations: 3.248 MB / 0.5211 GB, free: 2.582 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/0.8589, allocations: 47.88 kB / 0.5211 GB, free: 2.527 MB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 4.721e-06/0.8589, allocations: 0 / 0.5211 GB, free: 2.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.2882/1.147, allocations: 6.78 MB / 0.5277 GB, free: 86.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/1.147, allocations: 95.08 kB / 0.5278 GB, free: 86.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003881/1.151, allocations: 1.687 MB / 0.5295 GB, free: 86.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002851/1.151, allocations: 50.61 kB / 0.5295 GB, free: 86.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008622/1.152, allocations: 1.364 MB / 0.5309 GB, free: 85.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000476/1.153, allocations: 0.4966 MB / 0.5313 GB, free: 85.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/1.153, allocations: 35.81 kB / 0.5314 GB, free: 85.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/1.153, allocations: 377.7 kB / 0.5317 GB, free: 85.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/1.155, allocations: 0.7615 MB / 0.5325 GB, free: 85.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001952/1.157, allocations: 1.277 MB / 0.5337 GB, free: 84.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002013/1.159, allocations: 0.955 MB / 0.5347 GB, free: 84.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/1.159, allocations: 3.656 kB / 0.5347 GB, free: 84.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006049/1.165, allocations: 2.673 MB / 0.5373 GB, free: 84.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001243/1.166, allocations: 6.181 MB / 0.5433 GB, free: 77.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.121e-05/1.166, allocations: 16.16 kB / 0.5433 GB, free: 77.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001774/1.168, allocations: 0.5141 MB / 0.5438 GB, free: 77.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/1.17, allocations: 387 kB / 0.5442 GB, free: 77.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009514/1.18, allocations: 7.396 MB / 0.5514 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/1.182, allocations: 104 kB / 0.5515 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000249/1.182, allocations: 71.28 kB / 0.5516 GB, free: 73.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/1.182, allocations: 6.625 kB / 0.5516 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005736/1.188, allocations: 2.573 MB / 0.5541 GB, free: 73.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/1.188, allocations: 15.56 kB / 0.5541 GB, free: 73.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001519/1.19, allocations: 0.5105 MB / 0.5546 GB, free: 73.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001774/1.191, allocations: 373.8 kB / 0.555 GB, free: 73.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009057/1.2, allocations: 7.461 MB / 0.5623 GB, free: 69.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/1.202, allocations: 95.58 kB / 0.5624 GB, free: 69.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/1.202, allocations: 70.31 kB / 0.5624 GB, free: 69.7 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.002458/1.204, allocations: 1.065 MB / 0.5635 GB, free: 69.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005619/1.205, allocations: 210.6 kB / 0.5637 GB, free: 69.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005578/1.211, allocations: 2.539 MB / 0.5661 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/1.211, allocations: 11.66 kB / 0.5662 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/1.211, allocations: 7.656 kB / 0.5662 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-05/1.211, allocations: 7.688 kB / 0.5662 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/1.222, allocations: 5.461 MB / 0.5715 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/1.222, allocations: 6.406 kB / 0.5715 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/1.224, allocations: 191.1 kB / 0.5717 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002041/1.226, allocations: 0.6651 MB / 0.5723 GB, free: 67.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002158/1.226, allocations: 35.39 kB / 0.5724 GB, free: 67.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/1.24, allocations: 11.53 MB / 0.5836 GB, free: 58.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.543e-06/1.24, allocations: 3.938 kB / 0.5836 GB, free: 58.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007589/1.247, allocations: 3.821 MB / 0.5874 GB, free: 56.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/1.249, allocations: 479.5 kB / 0.5878 GB, free: 56.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004589/1.249, allocations: 29.56 kB / 0.5879 GB, free: 56.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/1.251, allocations: 89.16 kB / 0.5879 GB, free: 56.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003433/1.251, allocations: 118.1 kB / 0.5881 GB, free: 56.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/1.251, allocations: 38.66 kB / 0.5881 GB, free: 56.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002582/1.254, allocations: 1.298 MB / 0.5894 GB, free: 55.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.55e-07/1.254, allocations: 3.188 kB / 0.5894 GB, free: 55.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005208/1.259, allocations: 1.106 MB / 0.5904 GB, free: 55.81 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.0008155/1.26, allocations: 465 kB / 0.5909 GB, free: 55.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007873/1.268, allocations: 4.238 MB / 0.595 GB, free: 53.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.231e-06/1.268, allocations: 0 / 0.595 GB, free: 53.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003174/1.271, allocations: 1.817 MB / 0.5968 GB, free: 52.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003316/1.275, allocations: 0.5892 MB / 0.5974 GB, free: 52.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/1.288, allocations: 7.118 MB / 0.6043 GB, free: 48.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002572/1.29, allocations: 2.348 MB / 0.6066 GB, free: 47.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007331/1.291, allocations: 138.2 kB / 0.6068 GB, free: 47.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.701e-06/1.291, allocations: 2.594 kB / 0.6068 GB, free: 47.34 MB / 410.7 MB Notification: Performance of Templates: time 0.3548/1.646, allocations: 106.3 MB / 0.7106 GB, free: 82.7 MB / 410.7 MB