Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003451, allocations: 8 kB / 264.1 MB, free: 2.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2882, allocations: 44.51 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05936/0.3477, allocations: 34.44 MB / 343 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02976/0.3775, allocations: 10.58 MB / 353.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008195/0.3857, allocations: 247.1 kB / 353.9 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01041/0.3962, allocations: 2.25 MB / 356.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01776/0.414, allocations: 3.903 MB / 360 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00964/0.4237, allocations: 1.854 MB / 361.9 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02606/0.4498, allocations: 10.75 MB / 372.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05486/0.5047, allocations: 20.08 MB / 392.7 MB, free: 8.25 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01083/0.5156, allocations: 4.8 MB / 397.5 MB, free: 3.434 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01371/0.5293, allocations: 5.669 MB / 403.2 MB, free: 13.74 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003996/0.5334, allocations: 0.7852 MB / 404 MB, free: 12.96 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00686/0.5403, allocations: 1.093 MB / 405 MB, free: 11.86 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005974/0.5463, allocations: 2.585 MB / 407.6 MB, free: 9.27 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006453/0.5528, allocations: 2.679 MB / 410.3 MB, free: 6.578 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.6397/1.193, allocations: 22.46 MB / 432.8 MB, free: 24.36 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/1.193, allocations: 0 / 432.8 MB, free: 24.36 MB / 346.8 MB Notification: Performance of FrontEnd: time 3.947e-06/1.193, allocations: 0 / 432.8 MB, free: 24.36 MB / 346.8 MB Notification: Performance of Transformations before backend: time 0.0009298/1.194, allocations: 0 / 432.8 MB, free: 24.36 MB / 346.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.05584/1.25, allocations: 13.27 MB / 446 MB, free: 17.72 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/1.25, allocations: 13.55 kB / 446 MB, free: 17.72 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007923/1.258, allocations: 1.833 MB / 447.9 MB, free: 17.27 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07461/1.332, allocations: 9.113 MB / 457 MB, free: 13.76 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02263/1.355, allocations: 7.584 MB / 464.6 MB, free: 11.19 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001147/1.356, allocations: 0.9698 MB / 465.5 MB, free: 10.64 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00589/1.362, allocations: 1.274 MB / 466.8 MB, free: 9.793 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06769/1.43, allocations: 20.28 MB / 487.1 MB, free: 12.85 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008624/1.431, allocations: 19.81 kB / 487.1 MB, free: 12.83 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005576/1.436, allocations: 0.5242 MB / 487.6 MB, free: 12.72 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001486/1.438, allocations: 0.7567 MB / 488.4 MB, free: 12.02 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06557/1.503, allocations: 19.11 MB / 0.4956 GB, free: 13.22 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1779/1.681, allocations: 65.09 MB / 0.5592 GB, free: 11.47 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3497/2.031, allocations: 57.15 MB / 0.615 GB, free: 95.82 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03477/2.066, allocations: 11.76 MB / 0.6265 GB, free: 92.75 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.795e-05/2.066, allocations: 82.03 kB / 0.6265 GB, free: 92.68 MB / 442.8 MB Notification: Performance of pre-optimization done (n=370): time 8.005e-06/2.066, allocations: 0 / 0.6265 GB, free: 92.68 MB / 442.8 MB Notification: Performance of matching and sorting (n=412): time 0.06128/2.127, allocations: 17.98 MB / 0.6441 GB, free: 84.82 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/2.128, allocations: 97.62 kB / 0.6442 GB, free: 84.75 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01295/2.14, allocations: 5.511 MB / 0.6496 GB, free: 82.73 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008504/2.141, allocations: 92.39 kB / 0.6497 GB, free: 82.65 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004665/2.146, allocations: 6.04 MB / 0.6556 GB, free: 78.09 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00209/2.148, allocations: 1.444 MB / 0.657 GB, free: 76.99 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009714/2.149, allocations: 161.5 kB / 0.6571 GB, free: 76.87 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0006801/2.15, allocations: 0.6258 MB / 0.6577 GB, free: 76.42 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008368/2.158, allocations: 3.13 MB / 0.6608 GB, free: 75.02 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01095/2.169, allocations: 6.833 MB / 0.6675 GB, free: 67.07 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01096/2.18, allocations: 4.667 MB / 0.672 GB, free: 62.87 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001198/2.181, allocations: 36 kB / 0.6721 GB, free: 62.83 MB / 442.8 MB Notification: Performance of matching and sorting (n=1013) (initialization): time 0.02941/2.21, allocations: 10.99 MB / 0.6828 GB, free: 53.1 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/2.21, allocations: 66.09 kB / 0.6829 GB, free: 53.04 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/2.21, allocations: 128 kB / 0.683 GB, free: 52.91 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004283/2.215, allocations: 0.9807 MB / 0.6839 GB, free: 52.11 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01248/2.227, allocations: 1.866 MB / 0.6858 GB, free: 50.27 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01764/2.245, allocations: 9.728 MB / 0.6953 GB, free: 40.15 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009583/2.254, allocations: 451.2 kB / 0.6957 GB, free: 39.71 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001723/2.256, allocations: 428 kB / 0.6961 GB, free: 39.29 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (964): * Single equations (assignments): 959 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01248/2.269, allocations: 4.522 MB / 0.7005 GB, free: 34.76 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002003/2.271, allocations: 0.5711 MB / 0.7011 GB, free: 34.18 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02126/2.292, allocations: 6.76 MB / 0.7077 GB, free: 27.37 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.377e-05/2.292, allocations: 40 kB / 0.7077 GB, free: 27.33 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.201e-05/2.292, allocations: 12 kB / 0.7077 GB, free: 27.32 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001192/2.292, allocations: 19.92 kB / 0.7077 GB, free: 27.3 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04788/2.34, allocations: 16.55 MB / 0.7239 GB, free: 10.71 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.859e-05/2.34, allocations: 4 kB / 0.7239 GB, free: 10.71 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007153/2.347, allocations: 0.7961 MB / 0.7247 GB, free: 9.914 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003813/2.351, allocations: 0.7923 MB / 0.7255 GB, free: 9.105 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008689/2.352, allocations: 91.97 kB / 0.7255 GB, free: 9.016 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3156/2.668, allocations: 8.829 MB / 0.7342 GB, free: 136.7 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.991e-05/2.668, allocations: 8.781 kB / 0.7342 GB, free: 136.7 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02597/2.694, allocations: 9.888 MB / 0.7438 GB, free: 135.6 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004156/2.698, allocations: 1.139 MB / 0.7449 GB, free: 135.2 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002046/2.7, allocations: 78 kB / 0.745 GB, free: 135.2 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005641/2.706, allocations: 226.9 kB / 0.7452 GB, free: 135.1 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001214/2.707, allocations: 284.5 kB / 0.7455 GB, free: 135.1 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004645/2.708, allocations: 118.5 kB / 0.7456 GB, free: 135.1 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.009417/2.717, allocations: 3.614 MB / 0.7491 GB, free: 133.8 MB / 442.8 MB Notification: Performance of sort global known variables: time 9.92e-07/2.717, allocations: 0 / 0.7491 GB, free: 133.8 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01194/2.729, allocations: 2.042 MB / 0.7511 GB, free: 133.6 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (393): * Single equations (assignments): 388 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02645/2.756, allocations: 10.61 MB / 0.7615 GB, free: 128.9 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0197/2.775, allocations: 8.24 MB / 0.7696 GB, free: 125.5 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.775, allocations: 0 / 0.7696 GB, free: 125.5 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009374/2.785, allocations: 3.659 MB / 0.7731 GB, free: 122.2 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01049/2.795, allocations: 1.277 MB / 0.7744 GB, free: 121.2 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1851/2.981, allocations: 66.06 MB / 0.8389 GB, free: 56.24 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01591/2.996, allocations: 7.903 MB / 0.8466 GB, free: 48.29 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.01262/3.009, allocations: 2.404 MB / 0.849 GB, free: 45.88 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01012/3.019, allocations: 4.662 MB / 0.8535 GB, free: 41.22 MB / 442.8 MB Notification: Performance of SimCode: time 1.283e-06/3.019, allocations: 0 / 0.8535 GB, free: 41.22 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.64/3.659, allocations: 154 MB / 1.004 GB, free: 70.04 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/3.66, allocations: 278.2 kB / 1.004 GB, free: 69.67 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.934/11.59, allocations: 0 / 1.004 GB, free: 69.67 MB / 458.8 MB