Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.271/2.271, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004442/0.0004443, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3343, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01657/0.3509, allocations: 9.566 MB / 378.8 MB, free: 1.117 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009512/0.3605, allocations: 3.783 MB / 382.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002017/0.3626, allocations: 59.69 kB / 382.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002899/0.3655, allocations: 0.719 MB / 383.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004052/0.3696, allocations: 0.8489 MB / 384.2 MB, free: 11.69 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001785/0.3714, allocations: 343.5 kB / 384.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005282/0.3767, allocations: 2.161 MB / 386.7 MB, free: 9.191 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004025/0.3808, allocations: 2.06 MB / 388.8 MB, free: 7.102 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002238/0.3831, allocations: 1.055 MB / 389.9 MB, free: 6.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003118/0.3862, allocations: 1.428 MB / 391.3 MB, free: 4.605 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008107/0.3871, allocations: 168 kB / 391.5 MB, free: 4.441 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.3884, allocations: 259.8 kB / 391.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001448/0.3899, allocations: 0.8647 MB / 392.6 MB, free: 3.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.391, allocations: 0.6289 MB / 393.2 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006877/0.3979, allocations: 4.429 MB / 397.6 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.398, allocations: 0 / 397.6 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.398, allocations: 0 / 397.6 MB, free: 14.24 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001556/0.3982, allocations: 0 / 397.6 MB, free: 14.24 MB / 330.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.01102/0.4092, allocations: 3.212 MB / 400.8 MB, free: 10.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.4093, allocations: 12.02 kB / 400.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001355/0.4106, allocations: 404.9 kB / 401.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.4122, allocations: 383.7 kB / 401.6 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005873/0.4181, allocations: 1.911 MB / 403.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.4184, allocations: 205.7 kB / 403.7 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008934/0.4194, allocations: 287.8 kB / 404 MB, free: 7.719 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.4301, allocations: 3.684 MB / 407.7 MB, free: 3.965 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001093/0.4303, allocations: 4 kB / 407.7 MB, free: 3.961 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004367/0.4308, allocations: 116 kB / 407.8 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002194/0.431, allocations: 137.5 kB / 408 MB, free: 3.711 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00953/0.4405, allocations: 3.113 MB / 411.1 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03073/0.4713, allocations: 11.5 MB / 422.6 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005867/0.4772, allocations: 2.118 MB / 424.7 MB, free: 2.547 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004821/0.4778, allocations: 211.5 kB / 424.9 MB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.225e-05/0.4778, allocations: 51.81 kB / 424.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=138): time 4.468e-06/0.4778, allocations: 0 / 424.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=153): time 0.03115/0.509, allocations: 8.011 MB / 433 MB, free: 10.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.5091, allocations: 68.72 kB / 433 MB, free: 10.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004097/0.5132, allocations: 1.877 MB / 434.9 MB, free: 8.148 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003335/0.5136, allocations: 57.64 kB / 435 MB, free: 8.086 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001235/0.5148, allocations: 1.283 MB / 436.2 MB, free: 6.789 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007315/0.5156, allocations: 0.5198 MB / 436.8 MB, free: 6.262 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.5158, allocations: 36 kB / 436.8 MB, free: 6.227 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.516, allocations: 374.8 kB / 437.2 MB, free: 5.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002385/0.5184, allocations: 0.8667 MB / 438 MB, free: 4.984 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002786/0.5212, allocations: 1.329 MB / 439.4 MB, free: 3.457 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002958/0.5242, allocations: 1.08 MB / 440.4 MB, free: 2.379 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.5242, allocations: 4 kB / 440.4 MB, free: 2.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007557/0.5318, allocations: 2.734 MB / 443.2 MB, free: 15.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/0.5319, allocations: 12 kB / 443.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.342e-05/0.5319, allocations: 19.98 kB / 443.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.5334, allocations: 363.6 kB / 443.6 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003508/0.5369, allocations: 451.2 kB / 444 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009121/0.5461, allocations: 6.103 MB / 450.1 MB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002595/0.5487, allocations: 115.9 kB / 450.2 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002447/0.549, allocations: 75.98 kB / 450.3 MB, free: 8.07 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.002466/0.5514, allocations: 0.9109 MB / 451.2 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006551/0.5521, allocations: 205.4 kB / 451.4 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008611/0.5607, allocations: 2.872 MB / 454.3 MB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.5608, allocations: 23.94 kB / 454.3 MB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/0.5608, allocations: 8 kB / 454.3 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/0.5609, allocations: 7.969 kB / 454.3 MB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01748/0.5784, allocations: 6.041 MB / 460.4 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/0.5784, allocations: 4 kB / 460.4 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/0.5805, allocations: 232.1 kB / 460.6 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0037/0.5842, allocations: 0.7955 MB / 461.4 MB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002625/0.5845, allocations: 35.98 kB / 461.4 MB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01992/0.6044, allocations: 10.12 MB / 471.5 MB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.726e-06/0.6045, allocations: 7.938 kB / 471.5 MB, free: 2.234 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.313/0.9175, allocations: 4.098 MB / 475.6 MB, free: 87.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001615/0.9192, allocations: 490.6 kB / 476.1 MB, free: 87.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006051/0.9198, allocations: 36.56 kB / 476.2 MB, free: 87.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001981/0.9218, allocations: 93.94 kB / 476.2 MB, free: 87.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000397/0.9222, allocations: 121.1 kB / 476.4 MB, free: 87.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001559/0.9224, allocations: 51.7 kB / 476.4 MB, free: 87.19 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003/0.9254, allocations: 1.282 MB / 477.7 MB, free: 86.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.042e-06/0.9254, allocations: 0 / 477.7 MB, free: 86.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003221/0.9287, allocations: 0.5646 MB / 478.3 MB, free: 86.87 MB / 394.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.01102/0.9397, allocations: 4.731 MB / 483 MB, free: 84.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005825/0.9456, allocations: 2.581 MB / 485.6 MB, free: 83.49 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.9456, allocations: 0 / 485.6 MB, free: 83.49 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00384/0.9495, allocations: 1.662 MB / 487.2 MB, free: 82.65 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0037/0.9532, allocations: 487.6 kB / 487.7 MB, free: 82.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04238/0.9956, allocations: 17.63 MB / 0.4935 GB, free: 67.87 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002219/0.9979, allocations: 2.232 MB / 0.4957 GB, free: 65.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002227/1, allocations: 1.144 MB / 0.4968 GB, free: 64.46 MB / 394.7 MB Notification: Performance of SimCode: time 1.654e-06/1, allocations: 4 kB / 0.4968 GB, free: 64.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.826/4.826, allocations: 94.26 MB / 0.5888 GB, free: 2.086 MB / 426.7 MB