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.371/2.371, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004327/0.0004329, allocations: 12 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3648, allocations: 54.85 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5834/0.9483, allocations: 117.5 MB / 486.9 MB, free: 45.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.9486, allocations: 91.02 kB / 487 MB, free: 45.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.236/1.185, allocations: 61.73 MB / 0.5359 GB, free: 24.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.185, allocations: 0 / 0.5359 GB, free: 24.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003117/1.185, allocations: 83.88 kB / 0.5359 GB, free: 24.05 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.01202/1.197, allocations: 3.264 MB / 0.5391 GB, free: 20.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/1.197, allocations: 12.03 kB / 0.5391 GB, free: 20.94 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001758/1.199, allocations: 412.8 kB / 0.5395 GB, free: 20.7 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002612/1.202, allocations: 403.6 kB / 0.5399 GB, free: 20.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007846/1.21, allocations: 2.165 MB / 0.542 GB, free: 18.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/1.21, allocations: 209.6 kB / 0.5422 GB, free: 18.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007044/1.21, allocations: 286 kB / 0.5425 GB, free: 18.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00883/1.219, allocations: 3.675 MB / 0.5461 GB, free: 15.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/1.219, allocations: 11.89 kB / 0.5461 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004154/1.22, allocations: 116 kB / 0.5462 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001621/1.22, allocations: 133.5 kB / 0.5463 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007846/1.228, allocations: 2.989 MB / 0.5493 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02559/1.254, allocations: 11.59 MB / 0.5606 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00626/1.26, allocations: 2.234 MB / 0.5628 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005124/1.26, allocations: 227.4 kB / 0.563 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.843e-05/1.26, allocations: 51.81 kB / 0.563 GB, free: 13.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=141): time 3.998e-06/1.26, allocations: 0 / 0.563 GB, free: 13.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.03199/1.292, allocations: 8.329 MB / 0.5712 GB, free: 5.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/1.293, allocations: 68.72 kB / 0.5712 GB, free: 5.352 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004158/1.297, allocations: 1.7 MB / 0.5729 GB, free: 3.613 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003774/1.297, allocations: 53.7 kB / 0.5729 GB, free: 3.555 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/1.298, allocations: 1.272 MB / 0.5742 GB, free: 2.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007477/1.299, allocations: 0.5276 MB / 0.5747 GB, free: 1.734 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/1.299, allocations: 36 kB / 0.5747 GB, free: 1.699 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002127/1.3, allocations: 378.8 kB / 0.5751 GB, free: 1.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002477/1.302, allocations: 0.8979 MB / 0.576 GB, free: 432 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002776/1.305, allocations: 1.33 MB / 0.5773 GB, free: 14.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002996/1.308, allocations: 1.107 MB / 0.5783 GB, free: 13.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/1.308, allocations: 4 kB / 0.5784 GB, free: 13.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.008017/1.316, allocations: 2.815 MB / 0.5811 GB, free: 10.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/1.316, allocations: 10.03 kB / 0.5811 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.947e-05/1.316, allocations: 12 kB / 0.5811 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/1.318, allocations: 446.2 kB / 0.5815 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00345/1.321, allocations: 463.2 kB / 0.582 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/1.333, allocations: 7.188 MB / 0.589 GB, free: 2.453 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003037/1.337, allocations: 135.7 kB / 0.5891 GB, free: 2.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002382/1.337, allocations: 72.73 kB / 0.5892 GB, free: 2.25 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true 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: 59 * 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 (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.002705/1.34, allocations: 0.8994 MB / 0.5901 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000696/1.34, allocations: 209.4 kB / 0.5903 GB, free: 1.133 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009176/1.349, allocations: 3.015 MB / 0.5932 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.563e-05/1.35, allocations: 16 kB / 0.5932 GB, free: 14.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.35, allocations: 8 kB / 0.5933 GB, free: 14.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.011e-05/1.35, allocations: 7.969 kB / 0.5933 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01816/1.368, allocations: 6.14 MB / 0.5993 GB, free: 7.812 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/1.368, allocations: 0 / 0.5993 GB, free: 7.812 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002092/1.37, allocations: 232 kB / 0.5995 GB, free: 7.586 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003917/1.374, allocations: 0.8332 MB / 0.6003 GB, free: 6.742 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002606/1.374, allocations: 35.98 kB / 0.6003 GB, free: 6.707 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/1.395, allocations: 10.54 MB / 0.6106 GB, free: 11.76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/1.395, allocations: 4.031 kB / 0.6106 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/1.407, allocations: 4.379 MB / 0.6149 GB, free: 7.238 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001764/1.409, allocations: 0.4905 MB / 0.6154 GB, free: 6.727 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005117/1.41, allocations: 32 kB / 0.6154 GB, free: 6.695 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002225/1.412, allocations: 111.8 kB / 0.6155 GB, free: 6.586 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004703/1.413, allocations: 113.1 kB / 0.6156 GB, free: 6.477 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/1.413, allocations: 47.98 kB / 0.6157 GB, free: 6.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00334/1.416, allocations: 1.313 MB / 0.6169 GB, free: 5.094 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.416, allocations: 0 / 0.6169 GB, free: 5.094 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003685/1.42, allocations: 0.6289 MB / 0.6176 GB, free: 4.465 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * 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.01429/1.434, allocations: 5.828 MB / 0.6233 GB, free: 14.55 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007581/1.442, allocations: 2.662 MB / 0.6259 GB, free: 11.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/1.442, allocations: 4.125 kB / 0.6259 GB, free: 11.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004751/1.447, allocations: 1.685 MB / 0.6275 GB, free: 10.12 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/1.451, allocations: 484.2 kB / 0.628 GB, free: 9.641 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3732/1.824, allocations: 26.58 MB / 0.6539 GB, free: 132.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003317/1.828, allocations: 2.238 MB / 0.6561 GB, free: 131.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002572/1.83, allocations: 1.136 MB / 0.6572 GB, free: 131.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/1.83, allocations: 0 / 0.6572 GB, free: 131.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.907/5.737, allocations: 89.42 MB / 0.7445 GB, free: 85.98 MB / 490.7 MB