Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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) 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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01064/0.01065, allocations: 106.6 kB / 15.06 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001171/0.001171, allocations: 181.1 kB / 15.95 MB, free: 5.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.944/1.944, allocations: 194.6 MB / 211.3 MB, free: 11.06 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.3269/0.3269, allocations: 40.04 MB / 296.5 MB, free: 6.301 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004786/0.0004787, allocations: 12 kB / 361.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.118, allocations: 54.88 MB / 416 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01657/0.1346, allocations: 9.561 MB / 425.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009765/0.1444, allocations: 3.778 MB / 429.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.1465, allocations: 59.69 kB / 429.4 MB, free: 5.129 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002919/0.1494, allocations: 0.7268 MB / 430.1 MB, free: 4.398 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004093/0.1535, allocations: 0.8451 MB / 431 MB, free: 3.551 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.1553, allocations: 343.4 kB / 431.3 MB, free: 3.215 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005357/0.1607, allocations: 2.157 MB / 433.5 MB, free: 1.051 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003999/0.1648, allocations: 2.056 MB / 435.5 MB, free: 14.96 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002146/0.167, allocations: 1.047 MB / 436.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003181/0.1702, allocations: 1.412 MB / 438 MB, free: 12.5 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007555/0.171, allocations: 172 kB / 438.2 MB, free: 12.33 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00123/0.1722, allocations: 247.9 kB / 438.4 MB, free: 12.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001415/0.1737, allocations: 0.8685 MB / 439.3 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.1748, allocations: 0.6289 MB / 439.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007102/0.1819, allocations: 4.394 MB / 444.3 MB, free: 6.172 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.182, allocations: 3.938 kB / 444.3 MB, free: 6.168 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.182, allocations: 0 / 444.3 MB, free: 6.168 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000158/0.1822, allocations: 0 / 444.3 MB, free: 6.168 MB / 378.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.01125/0.1934, allocations: 3.213 MB / 447.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.1935, allocations: 8.031 kB / 447.5 MB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001436/0.1949, allocations: 416.9 kB / 447.9 MB, free: 2.461 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.1964, allocations: 383.7 kB / 448.3 MB, free: 2.082 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005774/0.2022, allocations: 1.903 MB / 450.2 MB, free: 128 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2931/0.4953, allocations: 208.3 kB / 450.4 MB, free: 55.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001069/0.4965, allocations: 284.4 kB / 450.7 MB, free: 55.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009758/0.5062, allocations: 3.646 MB / 454.3 MB, free: 55.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001316/0.5064, allocations: 14.38 kB / 454.4 MB, free: 55.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004676/0.5069, allocations: 114 kB / 454.5 MB, free: 55.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002049/0.5071, allocations: 140.6 kB / 454.6 MB, free: 55.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008924/0.5161, allocations: 3.099 MB / 457.7 MB, free: 54.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02786/0.544, allocations: 11.46 MB / 469.2 MB, free: 49.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004899/0.5489, allocations: 2.085 MB / 471.2 MB, free: 47.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004257/0.5494, allocations: 210.9 kB / 471.5 MB, free: 47.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.5495, allocations: 46.91 kB / 471.5 MB, free: 47.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=138): time 4.107e-06/0.5495, allocations: 0 / 471.5 MB, free: 47.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=153): time 0.0298/0.5793, allocations: 7.98 MB / 479.5 MB, free: 44.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.5794, allocations: 68.09 kB / 479.5 MB, free: 44.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004413/0.5838, allocations: 1.862 MB / 481.4 MB, free: 43.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003782/0.5842, allocations: 51.98 kB / 481.5 MB, free: 43.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.5855, allocations: 1.361 MB / 482.8 MB, free: 42.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007887/0.5863, allocations: 0.5223 MB / 483.3 MB, free: 42.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.5865, allocations: 35.34 kB / 483.4 MB, free: 42.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5866, allocations: 373.8 kB / 483.7 MB, free: 41.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002481/0.5891, allocations: 0.8606 MB / 484.6 MB, free: 41.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003052/0.5922, allocations: 1.316 MB / 485.9 MB, free: 40.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003067/0.5953, allocations: 1.07 MB / 487 MB, free: 40.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.848e-05/0.5954, allocations: 4.219 kB / 487 MB, free: 40.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.008696/0.6041, allocations: 2.854 MB / 489.8 MB, free: 39.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.6042, allocations: 11.48 kB / 489.9 MB, free: 39.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-05/0.6043, allocations: 13.53 kB / 489.9 MB, free: 39.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.6058, allocations: 378.5 kB / 490.2 MB, free: 38.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003603/0.6094, allocations: 453 kB / 490.7 MB, free: 38.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00838/0.6178, allocations: 6.1 MB / 496.8 MB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002769/0.6207, allocations: 122.8 kB / 496.9 MB, free: 34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004834/0.6212, allocations: 72.56 kB / 497 MB, free: 33.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (209): * Single equations (assignments): 205 * 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%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002914/0.6241, allocations: 0.9037 MB / 497.9 MB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007345/0.6249, allocations: 203.1 kB / 498.1 MB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009167/0.6341, allocations: 2.865 MB / 0.4892 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.311e-05/0.6342, allocations: 15.03 kB / 0.4892 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-05/0.6342, allocations: 9.109 kB / 0.4892 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.347e-05/0.6343, allocations: 7.453 kB / 0.4892 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/0.6521, allocations: 6.019 MB / 0.4951 GB, free: 29.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.6522, allocations: 3.938 kB / 0.4951 GB, free: 29.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002011/0.6542, allocations: 228.9 kB / 0.4953 GB, free: 29.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003477/0.6577, allocations: 0.7964 MB / 0.4961 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003352/0.6581, allocations: 46.84 kB / 0.4962 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01744/0.6755, allocations: 10.1 MB / 0.506 GB, free: 19.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.6756, allocations: 4 kB / 0.506 GB, free: 19.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/0.6858, allocations: 4.326 MB / 0.5102 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00166/0.6875, allocations: 478.3 kB / 0.5107 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006004/0.6881, allocations: 39.94 kB / 0.5107 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/0.6903, allocations: 98.06 kB / 0.5108 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004973/0.6908, allocations: 121.1 kB / 0.511 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/0.691, allocations: 47.92 kB / 0.511 GB, free: 14.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002701/0.6937, allocations: 1.274 MB / 0.5122 GB, free: 12.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6938, allocations: 0 / 0.5122 GB, free: 12.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003246/0.697, allocations: 0.5651 MB / 0.5128 GB, free: 12.4 MB / 378.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 (115): * Single equations (assignments): 112 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01085/0.7079, allocations: 5.908 MB / 0.5186 GB, free: 6.359 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00575/0.7137, allocations: 2.568 MB / 0.5211 GB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.7138, allocations: 0 / 0.5211 GB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003888/0.7177, allocations: 1.662 MB / 0.5227 GB, free: 2.039 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/0.7216, allocations: 481.5 kB / 0.5232 GB, free: 1.586 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05317/0.7748, allocations: 26.78 MB / 0.5493 GB, free: 5.562 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003251/0.7781, allocations: 2.263 MB / 0.5515 GB, free: 3.266 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002685/0.7809, allocations: 468.1 kB / 0.552 GB, free: 2.809 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002619/0.7835, allocations: 1.14 MB / 0.5531 GB, free: 1.668 MB / 410.7 MB Notification: Performance of SimCode: time 1.723e-06/0.7835, allocations: 0 / 0.5531 GB, free: 1.668 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1368/0.9204, allocations: 50.81 MB / 0.6027 GB, free: 14.94 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/0.9207, allocations: 232.8 kB / 0.6029 GB, free: 14.68 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.963/4.884, allocations: 0 / 0.6029 GB, free: 14.68 MB / 474.7 MB