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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.863/1.863, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003806, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.09756, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4523/0.5499, allocations: 109.6 MB / 418.2 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.5502, allocations: 91.89 kB / 418.2 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2924/0.8426, allocations: 76.76 MB / 495 MB, free: 8.641 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.8427, allocations: 0 / 495 MB, free: 8.641 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003949/0.8431, allocations: 87.86 kB / 495.1 MB, free: 8.555 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.01511/0.8582, allocations: 3.548 MB / 498.6 MB, free: 4.934 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.8583, allocations: 8.031 kB / 498.6 MB, free: 4.926 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001953/0.8602, allocations: 450.9 kB / 499.1 MB, free: 4.473 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004619/0.8649, allocations: 0.5975 MB / 499.7 MB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01244/0.8774, allocations: 3.162 MB / 0.4911 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000334/0.8777, allocations: 230.2 kB / 0.4913 GB, free: 436 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/0.8791, allocations: 315.9 kB / 0.4916 GB, free: 120 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.8926, allocations: 4.116 MB / 0.4956 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.8928, allocations: 7.938 kB / 0.4956 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006651/0.8934, allocations: 128 kB / 0.4957 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002102/0.8937, allocations: 138.1 kB / 0.4959 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.9052, allocations: 3.354 MB / 0.4991 GB, free: 8.203 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03593/0.9412, allocations: 13.83 MB / 0.5126 GB, free: 9.988 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009406/0.9507, allocations: 5.924 MB / 0.5184 GB, free: 3.344 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009234/0.9599, allocations: 3.24 MB / 0.5216 GB, free: 36 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2695/1.229, allocations: 48.36 kB / 0.5216 GB, free: 88.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 9.659e-06/1.23, allocations: 0 / 0.5216 GB, free: 88.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.03471/1.264, allocations: 6.786 MB / 0.5283 GB, free: 86.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/1.264, allocations: 93.08 kB / 0.5284 GB, free: 86.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0064/1.271, allocations: 1.693 MB / 0.53 GB, free: 86.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004348/1.271, allocations: 50.3 kB / 0.5301 GB, free: 86.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001577/1.273, allocations: 1.368 MB / 0.5314 GB, free: 85.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009755/1.274, allocations: 0.4915 MB / 0.5319 GB, free: 85.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/1.274, allocations: 34.91 kB / 0.5319 GB, free: 85.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002067/1.274, allocations: 380.8 kB / 0.5323 GB, free: 85.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00324/1.278, allocations: 0.7631 MB / 0.533 GB, free: 85.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003761/1.281, allocations: 1.277 MB / 0.5343 GB, free: 84.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00393/1.285, allocations: 0.9487 MB / 0.5352 GB, free: 84.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.391e-05/1.286, allocations: 5.094 kB / 0.5352 GB, free: 84.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.0115/1.297, allocations: 2.678 MB / 0.5378 GB, free: 84.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001825/1.299, allocations: 6.18 MB / 0.5438 GB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.038e-05/1.299, allocations: 15.84 kB / 0.5439 GB, free: 78.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003222/1.302, allocations: 0.5112 MB / 0.5444 GB, free: 78.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004301/1.307, allocations: 378.9 kB / 0.5447 GB, free: 78.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/1.324, allocations: 7.397 MB / 0.5519 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/1.328, allocations: 103.9 kB / 0.552 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004044/1.328, allocations: 71.52 kB / 0.5521 GB, free: 74.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/1.328, allocations: 3.875 kB / 0.5521 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01008/1.338, allocations: 2.574 MB / 0.5546 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.519e-05/1.338, allocations: 15.34 kB / 0.5546 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002684/1.341, allocations: 0.5158 MB / 0.5551 GB, free: 73.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004053/1.345, allocations: 374.9 kB / 0.5555 GB, free: 73.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01619/1.361, allocations: 7.459 MB / 0.5628 GB, free: 69.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/1.364, allocations: 90.19 kB / 0.5629 GB, free: 69.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005216/1.364, allocations: 79.61 kB / 0.5629 GB, free: 69.87 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.004284/1.369, allocations: 1.064 MB / 0.564 GB, free: 69.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00106/1.37, allocations: 212.6 kB / 0.5642 GB, free: 69.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.381, allocations: 2.537 MB / 0.5667 GB, free: 69.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-05/1.381, allocations: 16.73 kB / 0.5667 GB, free: 69.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.022e-05/1.381, allocations: 6.531 kB / 0.5667 GB, free: 69.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.839e-05/1.381, allocations: 11.55 kB / 0.5667 GB, free: 69.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02223/1.403, allocations: 5.453 MB / 0.572 GB, free: 68.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/1.403, allocations: 3.953 kB / 0.572 GB, free: 68.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/1.405, allocations: 192.6 kB / 0.5722 GB, free: 68.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00265/1.408, allocations: 0.6688 MB / 0.5729 GB, free: 68.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003119/1.408, allocations: 27.91 kB / 0.5729 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0158/1.424, allocations: 11.53 MB / 0.5842 GB, free: 59.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.424, allocations: 3.406 kB / 0.5842 GB, free: 59.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009016/1.433, allocations: 3.82 MB / 0.5879 GB, free: 57.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.435, allocations: 479.4 kB / 0.5883 GB, free: 56.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007836/1.435, allocations: 27.78 kB / 0.5884 GB, free: 56.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/1.438, allocations: 87.92 kB / 0.5885 GB, free: 56.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005658/1.438, allocations: 126.9 kB / 0.5886 GB, free: 56.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/1.438, allocations: 36.31 kB / 0.5886 GB, free: 56.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003125/1.442, allocations: 1.302 MB / 0.5899 GB, free: 56.15 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.824e-06/1.442, allocations: 0 / 0.5899 GB, free: 56.15 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006522/1.448, allocations: 1.114 MB / 0.591 GB, free: 56.05 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.01008/1.458, allocations: 5.232 MB / 0.5961 GB, free: 52.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009938/1.468, allocations: 4.239 MB / 0.6002 GB, free: 50.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/1.468, allocations: 0.9375 kB / 0.6002 GB, free: 50.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004151/1.473, allocations: 1.817 MB / 0.602 GB, free: 49.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004888/1.477, allocations: 0.5916 MB / 0.6026 GB, free: 49.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04781/1.525, allocations: 27.99 MB / 0.6299 GB, free: 28.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0036/1.529, allocations: 2.34 MB / 0.6322 GB, free: 27.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002779/1.532, allocations: 1.165 MB / 0.6333 GB, free: 26.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/1.532, allocations: 0 / 0.6333 GB, free: 26.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.136/5.668, allocations: 122.4 MB / 0.7528 GB, free: 52.18 MB / 410.7 MB