Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.03/2.03, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003579, allocations: 12 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2962, allocations: 44.5 MB / 308.6 MB, free: 12.78 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4574/0.7536, allocations: 109.6 MB / 418.2 MB, free: 47.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/0.754, allocations: 91.22 kB / 418.3 MB, free: 47.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2789/1.033, allocations: 76.77 MB / 495 MB, free: 21.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.033, allocations: 0 / 495 MB, free: 21.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003768/1.033, allocations: 79.88 kB / 495.1 MB, free: 21.38 MB / 346.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.01445/1.048, allocations: 3.548 MB / 498.7 MB, free: 17.76 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/1.048, allocations: 8.031 kB / 498.7 MB, free: 17.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001893/1.05, allocations: 450.9 kB / 499.1 MB, free: 17.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004476/1.054, allocations: 0.6014 MB / 499.7 MB, free: 16.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/1.066, allocations: 3.158 MB / 0.4911 GB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002726/1.066, allocations: 234.2 kB / 0.4913 GB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/1.067, allocations: 311.9 kB / 0.4916 GB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01243/1.08, allocations: 4.12 MB / 0.4956 GB, free: 8.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/1.08, allocations: 4 kB / 0.4956 GB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006114/1.081, allocations: 132 kB / 0.4958 GB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001631/1.081, allocations: 138.1 kB / 0.4959 GB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/1.091, allocations: 3.358 MB / 0.4992 GB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03754/1.129, allocations: 13.82 MB / 0.5127 GB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/1.139, allocations: 5.924 MB / 0.5185 GB, free: 176 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/1.15, allocations: 3.24 MB / 0.5216 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/1.15, allocations: 51.88 kB / 0.5217 GB, free: 12.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 4.479e-06/1.15, allocations: 0 / 0.5217 GB, free: 12.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.02453/1.175, allocations: 6.788 MB / 0.5283 GB, free: 5.816 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/1.175, allocations: 94.41 kB / 0.5284 GB, free: 5.707 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004385/1.179, allocations: 1.69 MB / 0.53 GB, free: 3.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003913/1.18, allocations: 49.7 kB / 0.5301 GB, free: 3.926 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001604/1.181, allocations: 1.44 MB / 0.5315 GB, free: 2.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008384/1.182, allocations: 0.5006 MB / 0.532 GB, free: 1.961 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/1.182, allocations: 36 kB / 0.532 GB, free: 1.926 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002209/1.183, allocations: 373.9 kB / 0.5324 GB, free: 1.555 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002223/1.185, allocations: 0.7613 MB / 0.5331 GB, free: 0.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/1.188, allocations: 1.283 MB / 0.5344 GB, free: 15.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002719/1.19, allocations: 0.9511 MB / 0.5353 GB, free: 14.34 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.74e-05/1.19, allocations: 4 kB / 0.5353 GB, free: 14.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008319/1.199, allocations: 2.8 MB / 0.538 GB, free: 11.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002742/1.201, allocations: 6.422 MB / 0.5443 GB, free: 4.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.121e-05/1.202, allocations: 16 kB / 0.5443 GB, free: 4.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002289/1.204, allocations: 0.5146 MB / 0.5448 GB, free: 4.008 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/1.207, allocations: 375.4 kB / 0.5452 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/1.22, allocations: 7.41 MB / 0.5524 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002731/1.222, allocations: 95.83 kB / 0.5525 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003369/1.223, allocations: 76 kB / 0.5526 GB, free: 11.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/1.223, allocations: 4 kB / 0.5526 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007326/1.23, allocations: 2.57 MB / 0.5551 GB, free: 9.055 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.891e-05/1.23, allocations: 19.95 kB / 0.5551 GB, free: 9.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/1.232, allocations: 0.5233 MB / 0.5556 GB, free: 8.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002937/1.235, allocations: 375.4 kB / 0.556 GB, free: 8.133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01249/1.248, allocations: 7.399 MB / 0.5632 GB, free: 336 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0026/1.25, allocations: 87.84 kB / 0.5633 GB, free: 248 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003469/1.251, allocations: 71.98 kB / 0.5634 GB, free: 176 kB / 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.2925/1.543, allocations: 1.067 MB / 0.5644 GB, free: 90.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008042/1.544, allocations: 209.2 kB / 0.5646 GB, free: 90.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006431/1.551, allocations: 2.541 MB / 0.5671 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/1.551, allocations: 14.19 kB / 0.5671 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/1.551, allocations: 6.062 kB / 0.5671 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-05/1.551, allocations: 11.09 kB / 0.5671 GB, free: 90.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/1.564, allocations: 5.466 MB / 0.5725 GB, free: 89.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/1.564, allocations: 3.438 kB / 0.5725 GB, free: 89.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/1.565, allocations: 189.3 kB / 0.5726 GB, free: 89.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002478/1.568, allocations: 0.6591 MB / 0.5733 GB, free: 89.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/1.568, allocations: 34.31 kB / 0.5733 GB, free: 89.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/1.583, allocations: 11.51 MB / 0.5846 GB, free: 83.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.583, allocations: 6.344 kB / 0.5846 GB, free: 83.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008205/1.592, allocations: 3.821 MB / 0.5883 GB, free: 82.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/1.593, allocations: 475.3 kB / 0.5887 GB, free: 82.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004286/1.594, allocations: 31.58 kB / 0.5888 GB, free: 82.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/1.595, allocations: 85.89 kB / 0.5889 GB, free: 82.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/1.596, allocations: 120.7 kB / 0.589 GB, free: 82.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.596, allocations: 40.91 kB / 0.589 GB, free: 82.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00268/1.599, allocations: 1.298 MB / 0.5903 GB, free: 82.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.599, allocations: 0 / 0.5903 GB, free: 82.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005175/1.604, allocations: 1.117 MB / 0.5914 GB, free: 82.38 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.009262/1.613, allocations: 5.253 MB / 0.5965 GB, free: 80.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008915/1.622, allocations: 4.245 MB / 0.6006 GB, free: 79.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/1.622, allocations: 1.062 kB / 0.6006 GB, free: 79.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00384/1.626, allocations: 1.813 MB / 0.6024 GB, free: 78.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004498/1.631, allocations: 0.5912 MB / 0.603 GB, free: 78.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04721/1.678, allocations: 28.03 MB / 0.6304 GB, free: 59.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00325/1.681, allocations: 2.378 MB / 0.6327 GB, free: 58.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003411/1.685, allocations: 0.5313 MB / 0.6332 GB, free: 58.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002521/1.687, allocations: 1.148 MB / 0.6343 GB, free: 57.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/1.687, allocations: 0 / 0.6343 GB, free: 57.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1805/1.868, allocations: 63.97 MB / 0.6968 GB, free: 13.76 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002472/1.868, allocations: 238.7 kB / 0.697 GB, free: 13.51 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.925/6.793, allocations: 0 / 0.697 GB, free: 13.51 MB / 410.7 MB