Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003615, allocations: 11.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09354, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.5421, allocations: 113.1 MB / 421.7 MB, free: 7.906 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.5424, allocations: 97.23 kB / 421.8 MB, free: 7.891 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3116/0.8541, allocations: 80.15 MB / 0.4902 GB, free: 1.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.8541, allocations: 0 / 0.4902 GB, free: 1.734 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004148/0.8545, allocations: 95.81 kB / 0.4903 GB, free: 1.641 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01743/0.872, allocations: 3.83 MB / 0.494 GB, free: 13.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.872, allocations: 8.031 kB / 0.494 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00202/0.8741, allocations: 497.2 kB / 0.4945 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004889/0.879, allocations: 0.6435 MB / 0.4951 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01383/0.8929, allocations: 3.394 MB / 0.4984 GB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000392/0.8933, allocations: 254.9 kB / 0.4987 GB, free: 8.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001412/0.8947, allocations: 343.9 kB / 0.499 GB, free: 8.551 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01425/0.909, allocations: 4.378 MB / 0.5033 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001428/0.9092, allocations: 7.984 kB / 0.5033 GB, free: 4.023 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006102/0.9098, allocations: 144 kB / 0.5034 GB, free: 3.883 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002571/0.9101, allocations: 166.8 kB / 0.5036 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.922, allocations: 3.493 MB / 0.507 GB, free: 224 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03977/0.9618, allocations: 14.55 MB / 0.5212 GB, free: 1.238 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2758/1.238, allocations: 5.361 MB / 0.5264 GB, free: 79.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00814/1.246, allocations: 3.274 MB / 0.5296 GB, free: 78.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/1.246, allocations: 49.56 kB / 0.5297 GB, free: 78.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 3.927e-06/1.246, allocations: 2.844 kB / 0.5297 GB, free: 78.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=164): time 0.02181/1.268, allocations: 7.077 MB / 0.5366 GB, free: 77.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/1.268, allocations: 75.08 kB / 0.5367 GB, free: 77.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005049/1.273, allocations: 1.83 MB / 0.5384 GB, free: 77.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004096/1.273, allocations: 53.89 kB / 0.5385 GB, free: 77.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/1.275, allocations: 1.54 MB / 0.54 GB, free: 76.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009059/1.276, allocations: 0.5601 MB / 0.5406 GB, free: 76.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/1.276, allocations: 40.22 kB / 0.5406 GB, free: 76.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/1.276, allocations: 387.7 kB / 0.541 GB, free: 75.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002387/1.279, allocations: 0.8578 MB / 0.5418 GB, free: 75.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/1.281, allocations: 1.452 MB / 0.5432 GB, free: 75.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/1.284, allocations: 1.118 MB / 0.5443 GB, free: 75.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.429e-05/1.284, allocations: 5.5 kB / 0.5443 GB, free: 75.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007415/1.292, allocations: 2.824 MB / 0.5471 GB, free: 74.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/1.292, allocations: 15.41 kB / 0.5471 GB, free: 74.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.951e-05/1.292, allocations: 22 kB / 0.5471 GB, free: 74.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001648/1.293, allocations: 428.2 kB / 0.5475 GB, free: 74.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003402/1.297, allocations: 475.5 kB / 0.548 GB, free: 74.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009102/1.306, allocations: 5.707 MB / 0.5535 GB, free: 72.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/1.309, allocations: 118.7 kB / 0.5537 GB, free: 72.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003558/1.309, allocations: 89.72 kB / 0.5537 GB, free: 72.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (228): * Single equations (assignments): 225 * 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: 2 * 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: 2 {(5,72.0%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003066/1.313, allocations: 1.072 MB / 0.5548 GB, free: 72.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007676/1.313, allocations: 226.2 kB / 0.555 GB, free: 72.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006651/1.32, allocations: 2.611 MB / 0.5576 GB, free: 71.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.02e-05/1.32, allocations: 18.28 kB / 0.5576 GB, free: 71.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/1.32, allocations: 3.938 kB / 0.5576 GB, free: 71.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.947e-05/1.32, allocations: 11.31 kB / 0.5576 GB, free: 71.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01534/1.335, allocations: 6.099 MB / 0.5635 GB, free: 71.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/1.336, allocations: 3.25 kB / 0.5635 GB, free: 71.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002129/1.338, allocations: 249.2 kB / 0.5638 GB, free: 71.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002149/1.34, allocations: 0.5539 MB / 0.5643 GB, free: 71.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002454/1.34, allocations: 33.5 kB / 0.5644 GB, free: 71.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0171/1.357, allocations: 8.479 MB / 0.5726 GB, free: 65.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/1.357, allocations: 3.625 kB / 0.5726 GB, free: 65.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01075/1.368, allocations: 3.992 MB / 0.5765 GB, free: 63.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/1.37, allocations: 0.5105 MB / 0.577 GB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005241/1.37, allocations: 30.59 kB / 0.5771 GB, free: 62.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002097/1.372, allocations: 82.08 kB / 0.5771 GB, free: 62.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003785/1.373, allocations: 125.5 kB / 0.5773 GB, free: 62.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/1.373, allocations: 47.81 kB / 0.5773 GB, free: 62.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002982/1.376, allocations: 1.396 MB / 0.5787 GB, free: 62.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.376, allocations: 0 / 0.5787 GB, free: 62.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003764/1.38, allocations: 0.6756 MB / 0.5793 GB, free: 62.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (121): * Single equations (assignments): 118 * 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 {(6,63.9%) 23,(1,100.0%) 1,(3,88.9%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01008/1.39, allocations: 5.407 MB / 0.5846 GB, free: 59.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006256/1.396, allocations: 2.691 MB / 0.5872 GB, free: 58.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/1.396, allocations: 0 / 0.5872 GB, free: 58.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004092/1.4, allocations: 1.716 MB / 0.5889 GB, free: 57.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004028/1.404, allocations: 0.506 MB / 0.5894 GB, free: 57.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04809/1.453, allocations: 31.86 MB / 0.6205 GB, free: 33.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/1.455, allocations: 2.473 MB / 0.6229 GB, free: 32.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002779/1.458, allocations: 1.356 MB / 0.6243 GB, free: 31.01 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/1.458, allocations: 0 / 0.6243 GB, free: 31.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.08/5.538, allocations: 106.9 MB / 0.7287 GB, free: 73.24 MB / 410.7 MB