Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.558/1.558, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003432, allocations: 8 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.079/0.07937, allocations: 38.77 MB / 272.1 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4043/0.4837, allocations: 116.9 MB / 389 MB, free: 5.348 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.4841, allocations: 91.08 kB / 389.1 MB, free: 5.301 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6589/1.143, allocations: 118.5 MB / 0.4957 GB, free: 56.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.496e-06/1.143, allocations: 0 / 0.4957 GB, free: 56.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005476/1.144, allocations: 139.8 kB / 0.4959 GB, free: 55.99 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: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.02143/1.165, allocations: 5.442 MB / 0.5012 GB, free: 50.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/1.165, allocations: 16.02 kB / 0.5012 GB, free: 50.45 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002836/1.168, allocations: 0.7155 MB / 0.5019 GB, free: 49.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004739/1.173, allocations: 0.7854 MB / 0.5027 GB, free: 48.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/1.183, allocations: 3.671 MB / 0.5062 GB, free: 45.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004053/1.184, allocations: 386.3 kB / 0.5066 GB, free: 44.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001924/1.186, allocations: 0.5115 MB / 0.5071 GB, free: 44.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0195/1.205, allocations: 6.642 MB / 0.5136 GB, free: 37.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000235/1.206, allocations: 11.89 kB / 0.5136 GB, free: 37.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001156/1.207, allocations: 220 kB / 0.5138 GB, free: 37.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002668/1.207, allocations: 234.1 kB / 0.514 GB, free: 36.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01639/1.224, allocations: 5.186 MB / 0.5191 GB, free: 31.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05005/1.274, allocations: 21.09 MB / 0.5397 GB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006817/1.28, allocations: 4.091 MB / 0.5437 GB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005147/1.281, allocations: 151 kB / 0.5438 GB, free: 5.598 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/1.281, allocations: 64.55 kB / 0.5439 GB, free: 5.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 4.779e-06/1.281, allocations: 0 / 0.5439 GB, free: 5.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=273): time 0.3081/1.589, allocations: 14.21 MB / 0.5578 GB, free: 53.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/1.589, allocations: 80.73 kB / 0.5579 GB, free: 53.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007529/1.597, allocations: 2.618 MB / 0.5604 GB, free: 53.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006276/1.597, allocations: 71.31 kB / 0.5605 GB, free: 53.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001882/1.599, allocations: 2.204 MB / 0.5626 GB, free: 52.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001305/1.601, allocations: 0.9418 MB / 0.5636 GB, free: 51.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003069/1.601, allocations: 69.19 kB / 0.5636 GB, free: 51.56 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/1.601, allocations: 438.9 kB / 0.564 GB, free: 51.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00384/1.605, allocations: 1.482 MB / 0.5655 GB, free: 51.24 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004227/1.609, allocations: 2.383 MB / 0.5678 GB, free: 50.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004542/1.614, allocations: 1.904 MB / 0.5697 GB, free: 50.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.354e-05/1.614, allocations: 8.125 kB / 0.5697 GB, free: 50.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01267/1.627, allocations: 5.061 MB / 0.5746 GB, free: 49.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.747e-05/1.627, allocations: 18.22 kB / 0.5746 GB, free: 49.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.173e-05/1.627, allocations: 28.91 kB / 0.5747 GB, free: 49.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003768/1.631, allocations: 0.9824 MB / 0.5756 GB, free: 49.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005004/1.636, allocations: 0.7243 MB / 0.5763 GB, free: 49.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02069/1.656, allocations: 13.72 MB / 0.5897 GB, free: 43.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004471/1.661, allocations: 192.2 kB / 0.5899 GB, free: 43.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007443/1.662, allocations: 136.3 kB / 0.59 GB, free: 43.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(6,72.2%) 23,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004803/1.666, allocations: 1.578 MB / 0.5916 GB, free: 42.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.668, allocations: 347.7 kB / 0.5919 GB, free: 42.04 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/1.68, allocations: 4.637 MB / 0.5964 GB, free: 40.01 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.97e-05/1.68, allocations: 25.25 kB / 0.5965 GB, free: 40.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.942e-05/1.68, allocations: 15.92 kB / 0.5965 GB, free: 40.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.193e-05/1.68, allocations: 19.2 kB / 0.5965 GB, free: 40.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02902/1.709, allocations: 10.52 MB / 0.6068 GB, free: 35.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.681e-05/1.709, allocations: 7.281 kB / 0.6068 GB, free: 35.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003537/1.713, allocations: 423.9 kB / 0.6072 GB, free: 35.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004556/1.718, allocations: 1.055 MB / 0.6082 GB, free: 35.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005641/1.718, allocations: 68.08 kB / 0.6083 GB, free: 35.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02467/1.743, allocations: 17.23 MB / 0.6251 GB, free: 22.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/1.743, allocations: 14.31 kB / 0.6251 GB, free: 22.28 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01673/1.76, allocations: 7.122 MB / 0.6321 GB, free: 18.47 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002674/1.762, allocations: 0.7314 MB / 0.6328 GB, free: 17.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/1.764, allocations: 63.56 kB / 0.6329 GB, free: 17.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003643/1.767, allocations: 160.1 kB / 0.633 GB, free: 17.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007708/1.768, allocations: 201 kB / 0.6332 GB, free: 17.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/1.768, allocations: 83.22 kB / 0.6333 GB, free: 17.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004676/1.773, allocations: 1.995 MB / 0.6352 GB, free: 15.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.773, allocations: 0 / 0.6352 GB, free: 15.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006187/1.779, allocations: 1.081 MB / 0.6363 GB, free: 14.68 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (212): * Single equations (assignments): 205 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(4,93.8%) 16,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01831/1.798, allocations: 9.307 MB / 0.6454 GB, free: 5.984 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01193/1.81, allocations: 4.786 MB / 0.65 GB, free: 1.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/1.81, allocations: 4 kB / 0.65 GB, free: 1.578 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008656/1.818, allocations: 3.065 MB / 0.653 GB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007353/1.826, allocations: 0.8756 MB / 0.6539 GB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3574/2.183, allocations: 50.59 MB / 0.7033 GB, free: 70.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005837/2.189, allocations: 3.463 MB / 0.7067 GB, free: 69.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00465/2.194, allocations: 2.038 MB / 0.7087 GB, free: 69.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.263e-06/2.194, allocations: 0 / 0.7087 GB, free: 69.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.302/7.496, allocations: 259.9 MB / 0.9625 GB, free: 75.93 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat