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.565/2.565, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.341e-05/3.367e-05, allocations: 0 / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4429/0.443, allocations: 54.84 MB / 364.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2465/0.6896, allocations: 117.5 MB / 482.1 MB, free: 10.95 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003024/0.6899, allocations: 79.95 kB / 482.2 MB, free: 10.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5964/1.286, allocations: 61.83 MB / 0.5312 GB, free: 109.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.965e-06/1.286, allocations: 0 / 0.5312 GB, free: 109.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003533/1.287, allocations: 85.98 kB / 0.5313 GB, free: 109.2 MB / 458.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.01222/1.299, allocations: 2.894 MB / 0.5342 GB, free: 108.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/1.299, allocations: 14.28 kB / 0.5342 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001566/1.301, allocations: 410 kB / 0.5346 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002015/1.303, allocations: 404.6 kB / 0.5349 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008084/1.311, allocations: 2.143 MB / 0.537 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002548/1.311, allocations: 212.8 kB / 0.5372 GB, free: 107.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009672/1.312, allocations: 285.2 kB / 0.5375 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01073/1.323, allocations: 3.618 MB / 0.541 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001277/1.323, allocations: 3.25 kB / 0.541 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004603/1.323, allocations: 121.4 kB / 0.5412 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002126/1.324, allocations: 134 kB / 0.5413 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009455/1.333, allocations: 2.911 MB / 0.5441 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03109/1.364, allocations: 11.6 MB / 0.5555 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005631/1.37, allocations: 2.178 MB / 0.5576 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002264/1.372, allocations: 1.063 MB / 0.5586 GB, free: 102.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004906/1.373, allocations: 228.2 kB / 0.5588 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/1.373, allocations: 47.47 kB / 0.5589 GB, free: 101.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=141): time 4.659e-06/1.373, allocations: 0 / 0.5589 GB, free: 101.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.01821/1.391, allocations: 6.045 MB / 0.5648 GB, free: 99.39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/1.391, allocations: 68.19 kB / 0.5649 GB, free: 99.33 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003725/1.395, allocations: 1.686 MB / 0.5665 GB, free: 98.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003801/1.395, allocations: 53.64 kB / 0.5666 GB, free: 98.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009067/1.396, allocations: 1.27 MB / 0.5678 GB, free: 97.54 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005882/1.397, allocations: 0.5267 MB / 0.5683 GB, free: 97.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/1.397, allocations: 35.47 kB / 0.5683 GB, free: 97.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/1.397, allocations: 384 kB / 0.5687 GB, free: 96.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001976/1.399, allocations: 0.8625 MB / 0.5696 GB, free: 96.44 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/1.401, allocations: 1.312 MB / 0.5708 GB, free: 95.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002431/1.404, allocations: 1.083 MB / 0.5719 GB, free: 95.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/1.404, allocations: 3.906 kB / 0.5719 GB, free: 95.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006884/1.411, allocations: 2.74 MB / 0.5746 GB, free: 94.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/1.411, allocations: 9.812 kB / 0.5746 GB, free: 94.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.398e-05/1.411, allocations: 19.94 kB / 0.5746 GB, free: 94.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001813/1.413, allocations: 439.2 kB / 0.575 GB, free: 94.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/1.416, allocations: 455.8 kB / 0.5755 GB, free: 94.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009813/1.426, allocations: 7.044 MB / 0.5823 GB, free: 88.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003085/1.429, allocations: 120 kB / 0.5824 GB, free: 88.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003714/1.43, allocations: 77.8 kB / 0.5825 GB, free: 88.82 MB / 458.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 (203): * Single equations (assignments): 200 * 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.0005357/1.43, allocations: 215.8 kB / 0.5827 GB, free: 88.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006382/1.431, allocations: 211.9 kB / 0.5829 GB, free: 88.54 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00812/1.439, allocations: 2.949 MB / 0.5858 GB, free: 87.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/1.439, allocations: 14.19 kB / 0.5858 GB, free: 87.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/1.439, allocations: 13.73 kB / 0.5858 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/1.439, allocations: 6.844 kB / 0.5858 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01685/1.456, allocations: 6.098 MB / 0.5918 GB, free: 85 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/1.456, allocations: 3.469 kB / 0.5918 GB, free: 85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002205/1.458, allocations: 234.5 kB / 0.592 GB, free: 84.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003834/1.462, allocations: 0.8346 MB / 0.5928 GB, free: 84.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003223/1.463, allocations: 46.3 kB / 0.5929 GB, free: 84.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01748/1.48, allocations: 10.18 MB / 0.6028 GB, free: 78.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.48, allocations: 3.781 kB / 0.6028 GB, free: 78.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/1.491, allocations: 4.373 MB / 0.6071 GB, free: 74.61 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001712/1.492, allocations: 496.8 kB / 0.6076 GB, free: 74.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004367/1.493, allocations: 36 kB / 0.6076 GB, free: 74.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002047/1.495, allocations: 98.31 kB / 0.6077 GB, free: 74.06 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004021/1.495, allocations: 115.7 kB / 0.6078 GB, free: 73.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001779/1.496, allocations: 46.67 kB / 0.6079 GB, free: 73.95 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003781/1.499, allocations: 1.3 MB / 0.6091 GB, free: 72.74 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.555e-06/1.499, allocations: 0 / 0.6091 GB, free: 72.74 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004638/1.504, allocations: 0.6327 MB / 0.6097 GB, free: 72.11 MB / 458.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 (112): * Single equations (assignments): 109 * 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.01617/1.52, allocations: 5.924 MB / 0.6155 GB, free: 66.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008385/1.529, allocations: 2.588 MB / 0.6181 GB, free: 64.24 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/1.529, allocations: 0 / 0.6181 GB, free: 64.24 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004911/1.534, allocations: 1.646 MB / 0.6197 GB, free: 62.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005229/1.539, allocations: 492.9 kB / 0.6201 GB, free: 62.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02271/1.562, allocations: 5.486 MB / 0.6255 GB, free: 57.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00475/1.567, allocations: 2.238 MB / 0.6277 GB, free: 55.72 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00372/1.57, allocations: 1.138 MB / 0.6288 GB, free: 54.68 MB / 458.7 MB Notification: Performance of SimCode: time 2.294e-06/1.57, allocations: 0 / 0.6288 GB, free: 54.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.416/5.987, allocations: 89.3 MB / 0.716 GB, free: 114.1 MB / 474.7 MB