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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.244/2.244, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.056e-05/2.064e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3508, allocations: 54.84 MB / 358.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5149/0.8657, allocations: 116.8 MB / 474.9 MB, free: 47.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.866, allocations: 76.22 kB / 475 MB, free: 47.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2469/1.113, allocations: 61.01 MB / 0.5234 GB, free: 32.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.113, allocations: 0 / 0.5234 GB, free: 32.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003758/1.113, allocations: 81.19 kB / 0.5235 GB, free: 32.89 MB / 394.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.01076/1.124, allocations: 2.9 MB / 0.5263 GB, free: 31.19 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/1.124, allocations: 11.81 kB / 0.5263 GB, free: 31.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002491/1.127, allocations: 403.5 kB / 0.5267 GB, free: 30.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007636/1.134, allocations: 2.142 MB / 0.5288 GB, free: 30.08 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/1.135, allocations: 94.47 kB / 0.5289 GB, free: 30.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001194/1.136, allocations: 175.5 kB / 0.5291 GB, free: 29.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008615/1.145, allocations: 2.723 MB / 0.5317 GB, free: 27.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/1.156, allocations: 3.211 MB / 0.5349 GB, free: 23.9 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001797/1.156, allocations: 4 kB / 0.5349 GB, free: 23.9 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008275/1.157, allocations: 4 kB / 0.5349 GB, free: 23.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000178/1.157, allocations: 141.4 kB / 0.535 GB, free: 23.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0302/1.187, allocations: 11.06 MB / 0.5458 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005804/1.193, allocations: 2.174 MB / 0.5479 GB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002402/1.196, allocations: 1.032 MB / 0.5489 GB, free: 9.094 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005591/1.196, allocations: 227.5 kB / 0.5492 GB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/1.196, allocations: 47.88 kB / 0.5492 GB, free: 8.777 MB / 394.7 MB Notification: Performance of pre-optimization done (n=147): time 4.508e-06/1.196, allocations: 0 / 0.5492 GB, free: 8.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=161): time 0.01731/1.214, allocations: 5.573 MB / 0.5547 GB, free: 3.145 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/1.214, allocations: 76.66 kB / 0.5547 GB, free: 3.059 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/1.217, allocations: 1.431 MB / 0.5561 GB, free: 1.629 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004508/1.218, allocations: 33.69 kB / 0.5562 GB, free: 1.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/1.219, allocations: 1.279 MB / 0.5574 GB, free: 304 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001062/1.22, allocations: 0.5236 MB / 0.5579 GB, free: 15.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/1.22, allocations: 0 / 0.5579 GB, free: 15.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003142/1.22, allocations: 378.8 kB / 0.5583 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002559/1.223, allocations: 0.8513 MB / 0.5591 GB, free: 14.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003058/1.226, allocations: 1.284 MB / 0.5604 GB, free: 13.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003213/1.229, allocations: 1.073 MB / 0.5614 GB, free: 12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-05/1.229, allocations: 4 kB / 0.5614 GB, free: 11.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.008692/1.238, allocations: 2.619 MB / 0.564 GB, free: 9.359 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.164e-05/1.238, allocations: 13.44 kB / 0.564 GB, free: 9.348 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.533e-05/1.238, allocations: 16 kB / 0.564 GB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/1.24, allocations: 446.1 kB / 0.5644 GB, free: 8.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/1.244, allocations: 463.3 kB / 0.5649 GB, free: 8.434 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/1.256, allocations: 6.737 MB / 0.5714 GB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002984/1.259, allocations: 83.86 kB / 0.5715 GB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005668/1.259, allocations: 79.98 kB / 0.5716 GB, free: 1.188 MB / 410.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 206 * 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,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005999/1.26, allocations: 147.1 kB / 0.5717 GB, free: 1.039 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008935/1.269, allocations: 2.651 MB / 0.5743 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.27, allocations: 193.6 kB / 0.5745 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009829/1.28, allocations: 2.839 MB / 0.5773 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-05/1.28, allocations: 19.98 kB / 0.5773 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/1.28, allocations: 11.95 kB / 0.5773 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-05/1.28, allocations: 7.969 kB / 0.5773 GB, free: 11.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01954/1.3, allocations: 5.709 MB / 0.5829 GB, free: 5.465 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.32e-05/1.3, allocations: 4 kB / 0.5829 GB, free: 5.461 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002427/1.302, allocations: 243.6 kB / 0.5831 GB, free: 5.223 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004248/1.307, allocations: 0.8382 MB / 0.584 GB, free: 4.375 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003913/1.307, allocations: 23.97 kB / 0.584 GB, free: 4.352 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02266/1.33, allocations: 10 MB / 0.5937 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/1.33, allocations: 4 kB / 0.5938 GB, free: 9.992 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0167/1.346, allocations: 4.341 MB / 0.598 GB, free: 5.527 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002588/1.349, allocations: 486.5 kB / 0.5985 GB, free: 5.031 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007941/1.35, allocations: 11.98 kB / 0.5985 GB, free: 5.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003023/1.353, allocations: 79.86 kB / 0.5985 GB, free: 4.941 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000667/1.354, allocations: 129 kB / 0.5987 GB, free: 4.812 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002598/1.354, allocations: 43.98 kB / 0.5987 GB, free: 4.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003915/1.358, allocations: 1.078 MB / 0.5998 GB, free: 3.699 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.082e-06/1.358, allocations: 0 / 0.5998 GB, free: 3.699 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005276/1.363, allocations: 0.5429 MB / 0.6003 GB, free: 3.156 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,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 () * 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,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01828/1.382, allocations: 5.88 MB / 0.606 GB, free: 13.17 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009009/1.391, allocations: 2.519 MB / 0.6085 GB, free: 10.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.391, allocations: 0 / 0.6085 GB, free: 10.62 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005846/1.397, allocations: 1.604 MB / 0.6101 GB, free: 8.988 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005108/1.402, allocations: 409.9 kB / 0.6104 GB, free: 8.586 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/1.421, allocations: 5.351 MB / 0.6157 GB, free: 3.145 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004514/1.426, allocations: 2.243 MB / 0.6179 GB, free: 0.8711 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00349/1.429, allocations: 1.132 MB / 0.619 GB, free: 15.73 MB / 474.7 MB Notification: Performance of SimCode: time 1.884e-06/1.429, allocations: 0 / 0.619 GB, free: 15.73 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.264/5.693, allocations: 87.79 MB / 0.7047 GB, free: 91.46 MB / 474.7 MB