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.SMEE_LoadDump.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.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003406, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09538, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.48/0.5754, allocations: 115 MB / 423.6 MB, free: 7.305 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.5758, allocations: 94.48 kB / 423.7 MB, free: 7.293 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4158/0.9915, allocations: 101.5 MB / 0.5129 GB, free: 10.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.417e-06/0.9916, allocations: 0 / 0.5129 GB, free: 10.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005558/0.9922, allocations: 103.9 kB / 0.513 GB, free: 10.25 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1063 * Number of variables: 1063 Notification: Performance of Generate backend data structure: time 0.0216/1.014, allocations: 4.656 MB / 0.5175 GB, free: 5.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/1.014, allocations: 15.95 kB / 0.5175 GB, free: 5.484 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003107/1.017, allocations: 0.6186 MB / 0.5181 GB, free: 4.852 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008498/1.026, allocations: 0.9546 MB / 0.519 GB, free: 3.891 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2951/1.321, allocations: 3.949 MB / 0.5229 GB, free: 69.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006229/1.321, allocations: 480.5 kB / 0.5234 GB, free: 69.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001734/1.323, allocations: 409.3 kB / 0.5238 GB, free: 69.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0169/1.34, allocations: 5.257 MB / 0.5289 GB, free: 69.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000167/1.34, allocations: 2.062 kB / 0.5289 GB, free: 69.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009356/1.341, allocations: 171.1 kB / 0.5291 GB, free: 69.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002545/1.341, allocations: 173 kB / 0.5292 GB, free: 69.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01439/1.356, allocations: 4.293 MB / 0.5334 GB, free: 69.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04587/1.402, allocations: 17.65 MB / 0.5506 GB, free: 65.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/1.412, allocations: 8.257 MB / 0.5587 GB, free: 59.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/1.426, allocations: 4.663 MB / 0.5633 GB, free: 58.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003272/1.429, allocations: 1.311 MB / 0.5645 GB, free: 58.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=190): time 4.88e-06/1.429, allocations: 0 / 0.5645 GB, free: 58.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=223): time 0.03235/1.462, allocations: 9.348 MB / 0.5737 GB, free: 56.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/1.462, allocations: 342.6 kB / 0.574 GB, free: 55.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005076/1.467, allocations: 2.135 MB / 0.5761 GB, free: 55.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005106/1.467, allocations: 67.73 kB / 0.5761 GB, free: 55.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001908/1.469, allocations: 1.755 MB / 0.5779 GB, free: 53.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001072/1.47, allocations: 0.7433 MB / 0.5786 GB, free: 53.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/1.471, allocations: 51.47 kB / 0.5786 GB, free: 53.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/1.471, allocations: 422 kB / 0.579 GB, free: 52.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/1.474, allocations: 1.136 MB / 0.5801 GB, free: 52.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003685/1.478, allocations: 1.87 MB / 0.582 GB, free: 51.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003668/1.481, allocations: 1.419 MB / 0.5834 GB, free: 50.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.259e-05/1.481, allocations: 3.906 kB / 0.5834 GB, free: 50.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=332) (initialization): time 0.01152/1.493, allocations: 4.046 MB / 0.5873 GB, free: 48.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001543/1.494, allocations: 7.325 MB / 0.5945 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-05/1.495, allocations: 18.94 kB / 0.5945 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004236/1.499, allocations: 1.075 MB / 0.5955 GB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003502/1.502, allocations: 484 kB / 0.596 GB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02153/1.524, allocations: 15.04 MB / 0.6107 GB, free: 29.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003943/1.528, allocations: 167.1 kB / 0.6108 GB, free: 29.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005723/1.529, allocations: 112.8 kB / 0.6109 GB, free: 29.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/1.529, allocations: 4.594 kB / 0.611 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01066/1.539, allocations: 3.919 MB / 0.6148 GB, free: 27.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.703e-05/1.539, allocations: 16.03 kB / 0.6148 GB, free: 27.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003692/1.543, allocations: 1.063 MB / 0.6158 GB, free: 27.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003465/1.547, allocations: 476.3 kB / 0.6163 GB, free: 27.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02111/1.568, allocations: 15.06 MB / 0.631 GB, free: 16.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/1.57, allocations: 151.3 kB / 0.6311 GB, free: 16.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004407/1.571, allocations: 108.4 kB / 0.6312 GB, free: 16.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.loadControl.pulsStart,loadControl.pulsStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 262 * 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: 6 * 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: 3 {(2,100.0%) 22,(3,100.0%) 26,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.003902/1.575, allocations: 1.333 MB / 0.6325 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009188/1.576, allocations: 278.1 kB / 0.6328 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/1.586, allocations: 3.532 MB / 0.6363 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/1.587, allocations: 18.06 kB / 0.6363 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/1.587, allocations: 3.406 kB / 0.6363 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.958e-05/1.587, allocations: 17.34 kB / 0.6363 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01956/1.606, allocations: 7.449 MB / 0.6436 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/1.606, allocations: 2.75 kB / 0.6436 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002654/1.609, allocations: 317.1 kB / 0.6439 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004433/1.613, allocations: 1.09 MB / 0.6449 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004228/1.614, allocations: 64.81 kB / 0.645 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/1.636, allocations: 12.57 MB / 0.6573 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/1.636, allocations: 3.062 kB / 0.6573 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01503/1.651, allocations: 5.021 MB / 0.6622 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002313/1.653, allocations: 0.6077 MB / 0.6628 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009945/1.654, allocations: 74.55 kB / 0.6629 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003062/1.657, allocations: 129.6 kB / 0.663 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008925/1.658, allocations: 246.3 kB / 0.6632 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/1.658, allocations: 63.22 kB / 0.6633 GB, free: 10 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004917/1.663, allocations: 1.636 MB / 0.6649 GB, free: 8.617 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.663, allocations: 0 / 0.6649 GB, free: 8.617 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009218/1.673, allocations: 1.531 MB / 0.6664 GB, free: 7.098 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulsStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 60,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01585/1.688, allocations: 6.254 MB / 0.6725 GB, free: 1.449 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.3052/1.994, allocations: 6.982 MB / 0.6793 GB, free: 77.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.994, allocations: 3.688 kB / 0.6793 GB, free: 77.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005917/2, allocations: 2.189 MB / 0.6814 GB, free: 76.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005078/2.005, allocations: 0.607 MB / 0.682 GB, free: 76.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07038/2.075, allocations: 36.83 MB / 0.718 GB, free: 55.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004062/2.079, allocations: 2.856 MB / 0.7208 GB, free: 54.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003554/2.083, allocations: 1.594 MB / 0.7223 GB, free: 54.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/2.083, allocations: 0 / 0.7223 GB, free: 54.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.584/6.667, allocations: 181.1 MB / 0.8992 GB, free: 81.61 MB / 442.7 MB