Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003825, allocations: 8 kB / 264.1 MB, free: 2.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2976, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4926/0.7903, allocations: 113.1 MB / 421.7 MB, free: 48.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003519/0.7907, allocations: 88.75 kB / 421.8 MB, free: 48.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2984/1.089, allocations: 80.16 MB / 0.4902 GB, free: 14.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.089, allocations: 0 / 0.4902 GB, free: 14.56 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003924/1.09, allocations: 99.81 kB / 0.4903 GB, free: 14.46 MB / 346.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.01595/1.106, allocations: 3.834 MB / 0.494 GB, free: 10.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/1.106, allocations: 8.031 kB / 0.494 GB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002126/1.108, allocations: 497.2 kB / 0.4945 GB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004893/1.113, allocations: 0.6357 MB / 0.4951 GB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/1.126, allocations: 3.398 MB / 0.4985 GB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003589/1.126, allocations: 266.9 kB / 0.4987 GB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001454/1.128, allocations: 339.9 kB / 0.499 GB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/1.143, allocations: 4.385 MB / 0.5033 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001895/1.143, allocations: 4 kB / 0.5033 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001139/1.144, allocations: 140 kB / 0.5035 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002003/1.144, allocations: 158.8 kB / 0.5036 GB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/1.157, allocations: 3.505 MB / 0.507 GB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04315/1.2, allocations: 14.53 MB / 0.5212 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009365/1.21, allocations: 5.378 MB / 0.5265 GB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01127/1.221, allocations: 3.275 MB / 0.5297 GB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.534e-05/1.221, allocations: 47.86 kB / 0.5297 GB, free: 4.566 MB / 378.7 MB Notification: Performance of pre-optimization done (n=137): time 4.849e-06/1.221, allocations: 0 / 0.5297 GB, free: 4.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=164): time 0.02493/1.246, allocations: 7.091 MB / 0.5366 GB, free: 13.35 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/1.246, allocations: 68.72 kB / 0.5367 GB, free: 13.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005265/1.251, allocations: 1.829 MB / 0.5385 GB, free: 11.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003933/1.252, allocations: 57.69 kB / 0.5385 GB, free: 11.35 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001869/1.254, allocations: 1.631 MB / 0.5401 GB, free: 9.695 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009497/1.255, allocations: 0.5583 MB / 0.5407 GB, free: 9.129 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/1.255, allocations: 43.94 kB / 0.5407 GB, free: 9.086 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002596/1.255, allocations: 381.9 kB / 0.5411 GB, free: 8.707 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/1.258, allocations: 0.859 MB / 0.5419 GB, free: 7.844 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003109/1.261, allocations: 1.449 MB / 0.5433 GB, free: 6.125 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003158/1.264, allocations: 1.119 MB / 0.5444 GB, free: 5.004 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-05/1.264, allocations: 8 kB / 0.5444 GB, free: 4.996 MB / 394.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009263/1.273, allocations: 2.958 MB / 0.5473 GB, free: 2.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.534e-05/1.273, allocations: 12 kB / 0.5473 GB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.315e-05/1.273, allocations: 20.5 kB / 0.5474 GB, free: 1.988 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001833/1.275, allocations: 430.3 kB / 0.5478 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003755/1.279, allocations: 471.2 kB / 0.5482 GB, free: 1.098 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/1.29, allocations: 5.705 MB / 0.5538 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003177/1.293, allocations: 115.9 kB / 0.5539 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005419/1.294, allocations: 88 kB / 0.554 GB, free: 10.93 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.003709/1.298, allocations: 1.079 MB / 0.555 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008942/1.299, allocations: 225.2 kB / 0.5553 GB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008313/1.307, allocations: 2.613 MB / 0.5578 GB, free: 6.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/1.307, allocations: 16 kB / 0.5578 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.281e-05/1.307, allocations: 11.95 kB / 0.5578 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.785e-05/1.307, allocations: 7.969 kB / 0.5578 GB, free: 6.945 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01895/1.326, allocations: 6.1 MB / 0.5638 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/1.326, allocations: 7.953 kB / 0.5638 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/1.329, allocations: 247.6 kB / 0.564 GB, free: 496 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2908/1.619, allocations: 0.5381 MB / 0.5646 GB, free: 88.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004436/1.62, allocations: 35.38 kB / 0.5646 GB, free: 88.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/1.635, allocations: 8.486 MB / 0.5729 GB, free: 84.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.635, allocations: 5.812 kB / 0.5729 GB, free: 84.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009534/1.644, allocations: 3.988 MB / 0.5768 GB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/1.646, allocations: 0.5019 MB / 0.5773 GB, free: 83.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008184/1.647, allocations: 35.72 kB / 0.5773 GB, free: 83.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002592/1.65, allocations: 87.45 kB / 0.5774 GB, free: 83.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009492/1.651, allocations: 116.6 kB / 0.5775 GB, free: 83.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005075/1.651, allocations: 51.94 kB / 0.5776 GB, free: 83.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003965/1.655, allocations: 1.395 MB / 0.5789 GB, free: 83.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.655, allocations: 4.672 kB / 0.5789 GB, free: 83.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003989/1.659, allocations: 0.6775 MB / 0.5796 GB, free: 83.44 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.01089/1.67, allocations: 5.404 MB / 0.5849 GB, free: 81.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007358/1.678, allocations: 2.681 MB / 0.5875 GB, free: 81.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/1.678, allocations: 0.5156 kB / 0.5875 GB, free: 81.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004864/1.683, allocations: 1.718 MB / 0.5892 GB, free: 81.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004339/1.687, allocations: 0.5139 MB / 0.5897 GB, free: 81.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05154/1.738, allocations: 31.88 MB / 0.6208 GB, free: 61.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003216/1.742, allocations: 2.525 MB / 0.6233 GB, free: 60.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003043/1.745, allocations: 0.4958 MB / 0.6237 GB, free: 60.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002989/1.748, allocations: 1.346 MB / 0.6251 GB, free: 59.72 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/1.748, allocations: 0 / 0.6251 GB, free: 59.72 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1362/1.884, allocations: 59.39 MB / 0.6831 GB, free: 30 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/1.884, allocations: 237.8 kB / 0.6833 GB, free: 29.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.777/6.661, allocations: 5.328 kB / 0.6833 GB, free: 29.75 MB / 410.7 MB