Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadModel(ModelicaTest): time 2.283/2.283, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004537/0.0004541, allocations: 8 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2927, allocations: 54.87 MB / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01449/0.3073, allocations: 9.57 MB / 378.8 MB, free: 3.137 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008839/0.3162, allocations: 3.778 MB / 382.5 MB, free: 15.35 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00218/0.3184, allocations: 59.69 kB / 382.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002639/0.321, allocations: 0.7229 MB / 383.3 MB, free: 14.56 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003867/0.3249, allocations: 0.8489 MB / 384.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.3266, allocations: 343.6 kB / 384.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004925/0.3316, allocations: 2.161 MB / 386.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003811/0.3354, allocations: 2.057 MB / 388.7 MB, free: 9.125 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.3375, allocations: 1.059 MB / 389.8 MB, free: 8.062 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002732/0.3403, allocations: 1.428 MB / 391.2 MB, free: 6.629 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006465/0.341, allocations: 168 kB / 391.4 MB, free: 6.465 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/0.3421, allocations: 251.9 kB / 391.6 MB, free: 6.219 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001372/0.3435, allocations: 0.8724 MB / 392.5 MB, free: 5.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3446, allocations: 0.6289 MB / 393.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006668/0.3513, allocations: 4.418 MB / 397.5 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.004e-05/0.3514, allocations: 8 kB / 397.5 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.3514, allocations: 0 / 397.5 MB, free: 272 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001075/0.3515, allocations: 0 / 397.5 MB, free: 272 kB / 314.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.008384/0.3599, allocations: 3.213 MB / 400.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.3599, allocations: 12.03 kB / 400.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.3616, allocations: 387.6 kB / 401.1 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00511/0.3667, allocations: 1.895 MB / 403 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002604/0.367, allocations: 213.6 kB / 403.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007401/0.3678, allocations: 283.8 kB / 403.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009344/0.3771, allocations: 3.684 MB / 407.2 MB, free: 6.398 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.73e-05/0.3773, allocations: 4 kB / 407.2 MB, free: 6.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003828/0.3777, allocations: 120 kB / 407.3 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001989/0.3779, allocations: 137.5 kB / 407.5 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0084/0.3863, allocations: 3.109 MB / 410.6 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02748/0.4138, allocations: 11.5 MB / 422.1 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004849/0.4187, allocations: 2.111 MB / 424.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004261/0.4192, allocations: 215.5 kB / 424.4 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.4192, allocations: 44.44 kB / 424.4 MB, free: 4.695 MB / 346.7 MB Notification: Performance of pre-optimization done (n=138): time 4.943e-06/0.4193, allocations: 0 / 424.4 MB, free: 4.695 MB / 346.7 MB Notification: Performance of matching and sorting (n=153): time 0.02427/0.4435, allocations: 8.018 MB / 432.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.4436, allocations: 72.66 kB / 432.5 MB, free: 12.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003886/0.4475, allocations: 1.874 MB / 434.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000276/0.4479, allocations: 49.7 kB / 434.4 MB, free: 10.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.4491, allocations: 1.279 MB / 435.7 MB, free: 9.242 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007574/0.4499, allocations: 0.5237 MB / 436.2 MB, free: 8.711 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.4501, allocations: 32 kB / 436.3 MB, free: 8.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002696/0.4504, allocations: 394.6 kB / 436.7 MB, free: 8.285 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/0.4524, allocations: 0.8628 MB / 437.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002553/0.455, allocations: 1.325 MB / 438.9 MB, free: 5.898 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002604/0.4576, allocations: 1.084 MB / 439.9 MB, free: 4.816 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.592e-05/0.4577, allocations: 4 kB / 439.9 MB, free: 4.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006719/0.4644, allocations: 2.739 MB / 442.7 MB, free: 2.035 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.4645, allocations: 12 kB / 442.7 MB, free: 2.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-05/0.4646, allocations: 23.98 kB / 442.7 MB, free: 2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.4657, allocations: 363.6 kB / 443.1 MB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002465/0.4682, allocations: 447.2 kB / 443.5 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008561/0.4768, allocations: 6.103 MB / 449.6 MB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.4788, allocations: 119.9 kB / 449.7 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002784/0.4791, allocations: 75.98 kB / 449.8 MB, free: 10.5 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.002297/0.4814, allocations: 0.908 MB / 450.7 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006027/0.482, allocations: 205.4 kB / 450.9 MB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0072/0.4892, allocations: 2.872 MB / 453.8 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/0.4893, allocations: 20.23 kB / 453.8 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.4893, allocations: 8 kB / 453.8 MB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.072e-05/0.4894, allocations: 7.969 kB / 453.8 MB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.5049, allocations: 6.045 MB / 459.9 MB, free: 284 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/0.505, allocations: 3.984 kB / 459.9 MB, free: 280 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.5064, allocations: 231.7 kB / 460.1 MB, free: 48 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002994/0.5095, allocations: 0.7956 MB / 460.9 MB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000263/0.5098, allocations: 43.97 kB / 460.9 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01795/0.5277, allocations: 10.11 MB / 471 MB, free: 4.684 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.857e-06/0.5278, allocations: 8.031 kB / 471 MB, free: 4.676 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00985/0.5376, allocations: 4.113 MB / 475.2 MB, free: 496 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/0.5394, allocations: 490.3 kB / 475.6 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006293/0.54, allocations: 35.94 kB / 475.7 MB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/0.5418, allocations: 91.89 kB / 475.8 MB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/0.5422, allocations: 125 kB / 475.9 MB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/0.5424, allocations: 43.98 kB / 475.9 MB, free: 15.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002983/0.5454, allocations: 1.285 MB / 477.2 MB, free: 14.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.486e-06/0.5454, allocations: 0 / 477.2 MB, free: 14.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003064/0.5485, allocations: 0.5664 MB / 477.8 MB, free: 13.82 MB / 410.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.0005647/0.5491, allocations: 163 kB / 477.9 MB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005857/0.555, allocations: 2.581 MB / 480.5 MB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.539e-06/0.555, allocations: 0 / 480.5 MB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003899/0.5589, allocations: 1.663 MB / 482.2 MB, free: 9.312 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003049/0.562, allocations: 0.4987 MB / 482.7 MB, free: 8.812 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/0.5766, allocations: 6.84 MB / 489.5 MB, free: 1.891 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00355/0.5802, allocations: 2.252 MB / 491.8 MB, free: 15.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009119/0.5812, allocations: 155.4 kB / 491.9 MB, free: 15.46 MB / 426.7 MB Notification: Performance of SimCode: time 1.963e-06/0.5812, allocations: 0 / 491.9 MB, free: 15.46 MB / 426.7 MB Notification: Performance of Templates: time 0.3531/0.9343, allocations: 79.72 MB / 0.5582 GB, free: 62.4 MB / 426.7 MB