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_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.0003599, allocations: 8 kB / 264.1 MB, free: 2.512 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2951, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.02307/0.3182, allocations: 12.94 MB / 321.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.3318, allocations: 5.04 MB / 326.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003194/0.335, allocations: 87.56 kB / 326.6 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004322/0.3394, allocations: 0.9405 MB / 327.6 MB, free: 9.586 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006393/0.3458, allocations: 1.375 MB / 328.9 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003596/0.3494, allocations: 0.7251 MB / 329.7 MB, free: 7.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007315/0.3567, allocations: 2.725 MB / 332.4 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005334/0.3621, allocations: 2.516 MB / 334.9 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002952/0.3651, allocations: 1.257 MB / 336.2 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003517/0.3687, allocations: 1.607 MB / 337.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007594/0.3695, allocations: 200 kB / 338 MB, free: 15.12 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001738/0.3712, allocations: 383.7 kB / 338.3 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.3726, allocations: 0.8605 MB / 339.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3738, allocations: 0.7614 MB / 340 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008644/0.3825, allocations: 5.489 MB / 345.5 MB, free: 7.613 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3825, allocations: 4 kB / 345.5 MB, free: 7.609 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.467e-06/0.3825, allocations: 0 / 345.5 MB, free: 7.609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000176/0.3827, allocations: 0 / 345.5 MB, free: 7.609 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01459/0.3973, allocations: 3.913 MB / 349.4 MB, free: 3.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.3974, allocations: 8.031 kB / 349.4 MB, free: 3.617 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001586/0.399, allocations: 497.2 kB / 349.9 MB, free: 3.121 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004599/0.4036, allocations: 0.6822 MB / 350.5 MB, free: 2.434 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006755/0.4104, allocations: 2.272 MB / 352.8 MB, free: 112 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003218/0.4107, allocations: 259 kB / 353.1 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009816/0.4117, allocations: 339.9 kB / 353.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01276/0.4245, allocations: 4.393 MB / 357.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/0.4247, allocations: 3.906 kB / 357.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000532/0.4252, allocations: 140 kB / 357.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000257/0.4255, allocations: 166.7 kB / 358.1 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.4369, allocations: 3.684 MB / 361.8 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03742/0.4744, allocations: 14.45 MB / 376.2 MB, free: 8.203 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008657/0.4831, allocations: 5.33 MB / 381.6 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009116/0.4923, allocations: 3.196 MB / 384.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.379e-05/0.4924, allocations: 51.86 kB / 384.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=137): time 4.458e-06/0.4924, allocations: 0 / 384.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.01731/0.5097, allocations: 5.712 MB / 390.5 MB, free: 8.961 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/0.5098, allocations: 64.72 kB / 390.6 MB, free: 8.887 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004456/0.5143, allocations: 1.994 MB / 392.6 MB, free: 6.855 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000236/0.5146, allocations: 45.7 kB / 392.6 MB, free: 6.805 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001751/0.5163, allocations: 1.634 MB / 394.3 MB, free: 5.148 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006775/0.517, allocations: 0.4929 MB / 394.8 MB, free: 4.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.5172, allocations: 44 kB / 394.8 MB, free: 4.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.5174, allocations: 377.9 kB / 395.2 MB, free: 4.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00203/0.5195, allocations: 0.7379 MB / 395.9 MB, free: 3.492 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002528/0.522, allocations: 1.346 MB / 397.2 MB, free: 1.875 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002471/0.5245, allocations: 0.9823 MB / 398.2 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.466e-05/0.5245, allocations: 4 kB / 398.2 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.006507/0.531, allocations: 2.56 MB / 400.8 MB, free: 14.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.512e-05/0.5311, allocations: 12 kB / 400.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/0.5312, allocations: 23.95 kB / 400.8 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005945/0.5318, allocations: 142.9 kB / 401 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003355/0.5351, allocations: 483.2 kB / 401.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003717/0.5389, allocations: 3.087 MB / 404.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/0.5413, allocations: 111.8 kB / 404.6 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.5415, allocations: 80 kB / 404.7 MB, free: 10.09 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (234): * Single equations (assignments): 231 * 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: 2 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002669/0.5441, allocations: 1.055 MB / 405.8 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00055/0.5447, allocations: 213.4 kB / 406 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00613/0.5509, allocations: 2.274 MB / 408.3 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/0.5509, allocations: 12 kB / 408.3 MB, free: 6.469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.5509, allocations: 8 kB / 408.3 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-05/0.551, allocations: 15.95 kB / 408.3 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01486/0.5658, allocations: 5.377 MB / 413.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/0.5659, allocations: 4 kB / 413.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002737/0.5687, allocations: 247.6 kB / 413.9 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.5702, allocations: 271.5 kB / 414.2 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001766/0.5704, allocations: 28 kB / 414.2 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3011/0.8715, allocations: 7.138 MB / 421.3 MB, free: 83.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.8716, allocations: 10.41 kB / 421.3 MB, free: 83.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006963/0.8785, allocations: 3.303 MB / 424.7 MB, free: 82.22 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.88, allocations: 459.1 kB / 425.1 MB, free: 82.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004771/0.8805, allocations: 31.84 kB / 425.1 MB, free: 82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.8821, allocations: 71.36 kB / 425.2 MB, free: 81.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/0.8824, allocations: 103.1 kB / 425.3 MB, free: 81.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.8826, allocations: 39.81 kB / 425.3 MB, free: 81.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002814/0.8854, allocations: 1.349 MB / 426.7 MB, free: 81.42 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8854, allocations: 0 / 426.7 MB, free: 81.42 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002941/0.8884, allocations: 0.557 MB / 427.2 MB, free: 81.37 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (122): * Single equations (assignments): 118 * 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: 4 * 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%) 5,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007557/0.896, allocations: 3.92 MB / 431.2 MB, free: 79.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004621/0.9007, allocations: 2.149 MB / 433.3 MB, free: 78.28 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.9007, allocations: 0 / 433.3 MB, free: 78.28 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002969/0.9037, allocations: 1.424 MB / 434.7 MB, free: 77.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003748/0.9075, allocations: 0.5031 MB / 435.2 MB, free: 77.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04651/0.954, allocations: 18.13 MB / 453.4 MB, free: 58.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002789/0.9569, allocations: 2.482 MB / 455.9 MB, free: 56.11 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00275/0.9597, allocations: 0.4907 MB / 456.3 MB, free: 55.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002495/0.9622, allocations: 1.304 MB / 457.7 MB, free: 54.31 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9622, allocations: 0 / 457.7 MB, free: 54.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1165/1.079, allocations: 49.49 MB / 0.4953 GB, free: 4.773 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/1.079, allocations: 229.9 kB / 0.4955 GB, free: 4.531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.994/5.073, allocations: 0 / 0.4955 GB, free: 4.531 MB / 346.7 MB