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_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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 194.9 MB / 211.1 MB, free: 7.582 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004232/0.0004234, allocations: 8 kB / 264.1 MB, free: 2.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3295, allocations: 44.5 MB / 308.6 MB, free: 12.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.02136/0.3509, allocations: 12.33 MB / 320.9 MB, free: 268 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.3634, allocations: 4.778 MB / 325.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002936/0.3664, allocations: 79.62 kB / 325.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004037/0.3705, allocations: 0.9016 MB / 326.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006018/0.3765, allocations: 1.305 MB / 327.9 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003332/0.3799, allocations: 0.69 MB / 328.6 MB, free: 8.484 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006655/0.3866, allocations: 2.517 MB / 331.2 MB, free: 5.969 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004595/0.3912, allocations: 2.256 MB / 333.4 MB, free: 3.668 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.3939, allocations: 1.156 MB / 334.6 MB, free: 2.508 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003587/0.3975, allocations: 1.467 MB / 336 MB, free: 1.035 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009432/0.3985, allocations: 188 kB / 336.2 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.4005, allocations: 363.7 kB / 336.6 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.4019, allocations: 0.7553 MB / 337.3 MB, free: 15.74 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.4034, allocations: 0.6952 MB / 338 MB, free: 15.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008362/0.4118, allocations: 4.995 MB / 343 MB, free: 10.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.4119, allocations: 0 / 343 MB, free: 10.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4119, allocations: 4 kB / 343 MB, free: 10.02 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001704/0.4121, allocations: 0 / 343 MB, free: 10.02 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01358/0.4257, allocations: 3.571 MB / 346.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.4258, allocations: 12.03 kB / 346.6 MB, free: 6.367 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001549/0.4273, allocations: 443 kB / 347 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004577/0.4319, allocations: 0.6241 MB / 347.7 MB, free: 5.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006379/0.4383, allocations: 2.046 MB / 349.7 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003083/0.4387, allocations: 234.3 kB / 349.9 MB, free: 2.961 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.4397, allocations: 311.9 kB / 350.2 MB, free: 2.656 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.4516, allocations: 3.972 MB / 354.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001261/0.4518, allocations: 0 / 354.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000473/0.4523, allocations: 131.9 kB / 354.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002342/0.4526, allocations: 146.2 kB / 354.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01061/0.4632, allocations: 3.335 MB / 357.8 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03332/0.4965, allocations: 13.26 MB / 371.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006808/0.5034, allocations: 3.938 MB / 375 MB, free: 8.848 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007117/0.5106, allocations: 2.638 MB / 377.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.887e-05/0.5107, allocations: 47.56 kB / 377.7 MB, free: 6.074 MB / 314.7 MB Notification: Performance of pre-optimization done (n=112): time 6.552e-06/0.5107, allocations: 0 / 377.7 MB, free: 6.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=146): time 0.01933/0.53, allocations: 6.019 MB / 383.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.141e-05/0.5302, allocations: 64.72 kB / 383.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00393/0.5341, allocations: 1.793 MB / 385.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002749/0.5344, allocations: 49.7 kB / 385.6 MB, free: 13.99 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001631/0.5361, allocations: 1.501 MB / 387.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008095/0.5369, allocations: 0.4891 MB / 387.6 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.5371, allocations: 40 kB / 387.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00024/0.5373, allocations: 377.9 kB / 388 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/0.5395, allocations: 0.7691 MB / 388.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002631/0.5422, allocations: 1.359 MB / 390.2 MB, free: 9.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003352/0.5456, allocations: 1.014 MB / 391.2 MB, free: 8.148 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.549e-05/0.5457, allocations: 4 kB / 391.2 MB, free: 8.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.01042/0.5561, allocations: 2.474 MB / 393.6 MB, free: 5.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.661e-05/0.5562, allocations: 12 kB / 393.7 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-05/0.5563, allocations: 20 kB / 393.7 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000776/0.5571, allocations: 122.5 kB / 393.8 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004677/0.5618, allocations: 491.5 kB / 394.3 MB, free: 5.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.5632, allocations: 1.327 MB / 395.6 MB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/0.5656, allocations: 111.8 kB / 395.7 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/0.5659, allocations: 76 kB / 395.8 MB, free: 3.367 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (235): * Single equations (assignments): 232 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002561/0.5684, allocations: 0.9892 MB / 396.8 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005773/0.569, allocations: 201.5 kB / 397 MB, free: 2.168 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005473/0.5745, allocations: 1.981 MB / 399 MB, free: 172 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/0.5746, allocations: 16 kB / 399 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.5746, allocations: 4 kB / 399 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/0.5746, allocations: 7.969 kB / 399 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.5876, allocations: 5.012 MB / 404 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.5877, allocations: 0 / 404 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002723/0.5904, allocations: 315.6 kB / 404.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004876/0.5909, allocations: 102.7 kB / 404.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/0.5911, allocations: 32 kB / 404.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.5924, allocations: 1.28 MB / 405.7 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5924, allocations: 4 kB / 405.7 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007607/0.6, allocations: 3.104 MB / 408.8 MB, free: 5.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/0.6015, allocations: 450.4 kB / 409.3 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004059/0.6019, allocations: 36.02 kB / 409.3 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/0.6035, allocations: 79.91 kB / 409.4 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003162/0.6039, allocations: 89.12 kB / 409.5 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.604, allocations: 39.98 kB / 409.5 MB, free: 5.297 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002797/0.6068, allocations: 1.206 MB / 410.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.444e-06/0.6069, allocations: 0 / 410.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002657/0.6095, allocations: 0.5389 MB / 411.2 MB, free: 3.527 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (145): * Single equations (assignments): 142 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2701/0.8797, allocations: 3.704 MB / 414.9 MB, free: 90.06 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007747/0.8875, allocations: 2.22 MB / 417.2 MB, free: 89.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.8876, allocations: 3.938 kB / 417.2 MB, free: 89.56 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003117/0.8907, allocations: 1.185 MB / 418.4 MB, free: 88.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004311/0.895, allocations: 472.6 kB / 418.8 MB, free: 88.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05452/0.9496, allocations: 16.49 MB / 435.3 MB, free: 77.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003579/0.9532, allocations: 2.316 MB / 437.6 MB, free: 75.78 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.003883/0.9572, allocations: 0.509 MB / 438.1 MB, free: 75.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002771/0.96, allocations: 1.163 MB / 439.3 MB, free: 74.11 MB / 346.7 MB Notification: Performance of SimCode: time 1.303e-06/0.96, allocations: 0 / 439.3 MB, free: 74.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1214/1.081, allocations: 45.24 MB / 484.5 MB, free: 28.83 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002835/1.082, allocations: 229.8 kB / 484.8 MB, free: 28.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.753/4.835, allocations: 0 / 484.8 MB, free: 28.59 MB / 346.7 MB