Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003587, allocations: 12 kB / 264.1 MB, free: 2.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2843, allocations: 44.5 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01665/0.301, allocations: 9.538 MB / 318.1 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009847/0.3109, allocations: 3.782 MB / 321.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.3131, allocations: 59.69 kB / 321.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002935/0.3161, allocations: 0.7229 MB / 322.7 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004235/0.3203, allocations: 0.8412 MB / 323.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001912/0.3223, allocations: 343.5 kB / 323.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005212/0.3275, allocations: 2.13 MB / 326 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0041/0.3317, allocations: 2.045 MB / 328 MB, free: 9.105 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002034/0.3338, allocations: 1.035 MB / 329.1 MB, free: 8.066 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003141/0.3369, allocations: 1.393 MB / 330.4 MB, free: 6.668 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000848/0.3378, allocations: 164 kB / 330.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.3391, allocations: 255.8 kB / 330.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001345/0.3405, allocations: 0.8568 MB / 331.7 MB, free: 5.398 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000969/0.3414, allocations: 0.6289 MB / 332.3 MB, free: 4.762 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00713/0.3486, allocations: 4.355 MB / 336.7 MB, free: 404 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3487, allocations: 3.938 kB / 336.7 MB, free: 400 kB / 266.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.3487, allocations: 0 / 336.7 MB, free: 400 kB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001516/0.3488, allocations: 0 / 336.7 MB, free: 400 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01057/0.3594, allocations: 3.186 MB / 339.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.3595, allocations: 8.031 kB / 339.9 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001264/0.3608, allocations: 408.9 kB / 340.3 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001673/0.3624, allocations: 399.5 kB / 340.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005619/0.3681, allocations: 1.876 MB / 342.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002569/0.3684, allocations: 217.6 kB / 342.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009344/0.3694, allocations: 283.9 kB / 343.1 MB, free: 9.902 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/0.3803, allocations: 3.63 MB / 346.7 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.3805, allocations: 11.91 kB / 346.7 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004336/0.3809, allocations: 120 kB / 346.8 MB, free: 6.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002357/0.3812, allocations: 149.4 kB / 347 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009604/0.3908, allocations: 3.055 MB / 350 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03104/0.4219, allocations: 11.59 MB / 361.6 MB, free: 6.926 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004155/0.4261, allocations: 1.876 MB / 363.5 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004539/0.4266, allocations: 215.2 kB / 363.7 MB, free: 4.691 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/0.4267, allocations: 47.56 kB / 363.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of pre-optimization done (n=124): time 3.948e-06/0.4267, allocations: 0 / 363.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=139): time 0.02183/0.4485, allocations: 6.582 MB / 370.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.885e-05/0.4486, allocations: 64.72 kB / 370.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004175/0.4528, allocations: 1.912 MB / 372.3 MB, free: 11.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002886/0.4531, allocations: 57.64 kB / 372.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.4547, allocations: 1.408 MB / 373.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007764/0.4555, allocations: 492.8 kB / 374.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.4557, allocations: 36 kB / 374.3 MB, free: 9.859 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000221/0.4559, allocations: 385.8 kB / 374.6 MB, free: 9.477 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00221/0.4582, allocations: 0.8081 MB / 375.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002606/0.4608, allocations: 1.359 MB / 376.8 MB, free: 7.062 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002822/0.4636, allocations: 1.037 MB / 377.8 MB, free: 6.027 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.977e-05/0.4637, allocations: 4 kB / 377.9 MB, free: 6.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007776/0.4715, allocations: 2.811 MB / 380.7 MB, free: 3.172 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.4716, allocations: 12 kB / 380.7 MB, free: 3.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.756e-05/0.4716, allocations: 16 kB / 380.7 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.4731, allocations: 363.3 kB / 381 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003218/0.4764, allocations: 443.3 kB / 381.5 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008918/0.4853, allocations: 6.041 MB / 387.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002546/0.4879, allocations: 131.7 kB / 387.6 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003507/0.4883, allocations: 76.06 kB / 387.7 MB, free: 11.7 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * 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 (212): * Single equations (assignments): 208 * 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: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002412/0.4907, allocations: 0.9031 MB / 388.6 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006311/0.4913, allocations: 209.4 kB / 388.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006641/0.498, allocations: 2.393 MB / 391.2 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.4981, allocations: 12 kB / 391.2 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.4981, allocations: 4 kB / 391.2 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.601e-05/0.4981, allocations: 7.969 kB / 391.2 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/0.5133, allocations: 5.435 MB / 396.7 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.5133, allocations: 4 kB / 396.7 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0023/0.5156, allocations: 259.6 kB / 396.9 MB, free: 2.266 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/0.5174, allocations: 383.2 kB / 397.3 MB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/0.5176, allocations: 39.94 kB / 397.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/0.5287, allocations: 7.518 MB / 404.9 MB, free: 9.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.5288, allocations: 4 kB / 404.9 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009069/0.5379, allocations: 3.574 MB / 408.4 MB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/0.5395, allocations: 462.5 kB / 408.9 MB, free: 5.645 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005986/0.5401, allocations: 43.88 kB / 408.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001812/0.542, allocations: 87.89 kB / 409 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/0.5423, allocations: 97.12 kB / 409.1 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.5425, allocations: 47.98 kB / 409.2 MB, free: 5.375 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003/0.5455, allocations: 1.298 MB / 410.5 MB, free: 4.055 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5455, allocations: 0 / 410.5 MB, free: 4.055 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003051/0.5486, allocations: 0.5352 MB / 411 MB, free: 3.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (130): * Single equations (assignments): 126 * 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 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2577/0.8063, allocations: 4.169 MB / 415.2 MB, free: 89.81 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005755/0.8121, allocations: 2.448 MB / 417.6 MB, free: 89.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.8122, allocations: 0 / 417.6 MB, free: 89.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002897/0.8151, allocations: 1.475 MB / 419.1 MB, free: 88.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00375/0.8189, allocations: 496.6 kB / 419.6 MB, free: 88.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04297/0.8619, allocations: 17.41 MB / 437 MB, free: 75.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002232/0.8642, allocations: 2.247 MB / 439.2 MB, free: 73.45 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002518/0.8667, allocations: 0.4977 MB / 439.7 MB, free: 72.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002294/0.8691, allocations: 1.136 MB / 440.9 MB, free: 71.81 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/0.8691, allocations: 0 / 440.9 MB, free: 71.81 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.112/0.9811, allocations: 48.27 MB / 489.1 MB, free: 23.51 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/0.9814, allocations: 241.3 kB / 489.4 MB, free: 23.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.873/4.854, allocations: 0 / 489.4 MB, free: 23.27 MB / 346.7 MB