Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.692/1.692, allocations: 171.2 MB / 186.1 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003531, allocations: 12 kB / 233.4 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08194/0.08233, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4241/0.5065, allocations: 116.9 MB / 389.1 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.5069, allocations: 88.39 kB / 389.2 MB, free: 5.137 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6705/1.177, allocations: 118.5 MB / 0.4957 GB, free: 55.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.177, allocations: 0 / 0.4957 GB, free: 55.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005059/1.178, allocations: 139.8 kB / 0.4959 GB, free: 55.67 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.02101/1.199, allocations: 5.444 MB / 0.5012 GB, free: 50.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/1.199, allocations: 23.95 kB / 0.5012 GB, free: 50.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002903/1.202, allocations: 0.7078 MB / 0.5019 GB, free: 49.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004611/1.207, allocations: 0.7854 MB / 0.5027 GB, free: 48.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/1.218, allocations: 3.659 MB / 0.5062 GB, free: 44.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004795/1.218, allocations: 390.3 kB / 0.5066 GB, free: 44.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002158/1.22, allocations: 0.5077 MB / 0.5071 GB, free: 43.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02144/1.242, allocations: 6.638 MB / 0.5136 GB, free: 37.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002499/1.242, allocations: 19.83 kB / 0.5136 GB, free: 37.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001445/1.244, allocations: 220 kB / 0.5138 GB, free: 36.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002799/1.244, allocations: 234.2 kB / 0.5141 GB, free: 36.67 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01682/1.261, allocations: 5.19 MB / 0.5191 GB, free: 31.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05405/1.315, allocations: 21.09 MB / 0.5397 GB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008606/1.323, allocations: 4.093 MB / 0.5437 GB, free: 5.441 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007352/1.324, allocations: 151 kB / 0.5439 GB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.057e-05/1.324, allocations: 60.56 kB / 0.5439 GB, free: 5.211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 1.104e-05/1.324, allocations: 0 / 0.5439 GB, free: 5.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=273): time 0.3209/1.645, allocations: 14.21 MB / 0.5578 GB, free: 53.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/1.645, allocations: 78.59 kB / 0.5579 GB, free: 53.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00717/1.653, allocations: 2.623 MB / 0.5604 GB, free: 52.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006887/1.653, allocations: 72.05 kB / 0.5605 GB, free: 52.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/1.655, allocations: 2.37 MB / 0.5628 GB, free: 52.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001327/1.657, allocations: 0.9362 MB / 0.5637 GB, free: 51.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003059/1.657, allocations: 66.59 kB / 0.5638 GB, free: 51.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002428/1.657, allocations: 434.4 kB / 0.5642 GB, free: 51.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003774/1.661, allocations: 1.48 MB / 0.5657 GB, free: 51.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00511/1.666, allocations: 2.394 MB / 0.568 GB, free: 50.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00502/1.671, allocations: 1.897 MB / 0.5698 GB, free: 50.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.604e-05/1.672, allocations: 12.14 kB / 0.5699 GB, free: 50.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.0151/1.687, allocations: 5.265 MB / 0.575 GB, free: 49.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.051e-05/1.687, allocations: 24.31 kB / 0.575 GB, free: 49.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.364e-05/1.687, allocations: 25.06 kB / 0.575 GB, free: 49.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00393/1.691, allocations: 0.9833 MB / 0.576 GB, free: 49.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005282/1.696, allocations: 0.7182 MB / 0.5767 GB, free: 49.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02706/1.723, allocations: 13.73 MB / 0.5901 GB, free: 42.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008306/1.732, allocations: 190.2 kB / 0.5903 GB, free: 42.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.733, allocations: 135.8 kB / 0.5904 GB, free: 42.75 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.005888/1.739, allocations: 1.576 MB / 0.592 GB, free: 41.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/1.74, allocations: 351.6 kB / 0.5923 GB, free: 41.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01219/1.752, allocations: 4.649 MB / 0.5968 GB, free: 39.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.977e-05/1.752, allocations: 28.47 kB / 0.5969 GB, free: 39.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.569e-05/1.752, allocations: 14.72 kB / 0.5969 GB, free: 39.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.208e-05/1.753, allocations: 13.55 kB / 0.5969 GB, free: 39.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02846/1.781, allocations: 10.51 MB / 0.6072 GB, free: 35.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.723e-05/1.781, allocations: 6.812 kB / 0.6072 GB, free: 35.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003531/1.785, allocations: 425.1 kB / 0.6076 GB, free: 35.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004484/1.789, allocations: 1.057 MB / 0.6086 GB, free: 34.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004909/1.79, allocations: 73.56 kB / 0.6087 GB, free: 34.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02448/1.814, allocations: 17.22 MB / 0.6255 GB, free: 22 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/1.814, allocations: 4.781 kB / 0.6255 GB, free: 22 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01611/1.83, allocations: 7.135 MB / 0.6325 GB, free: 17.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002735/1.833, allocations: 0.731 MB / 0.6332 GB, free: 17.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00101/1.834, allocations: 67.38 kB / 0.6332 GB, free: 17.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003287/1.837, allocations: 152.9 kB / 0.6334 GB, free: 17.01 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006625/1.838, allocations: 203.8 kB / 0.6336 GB, free: 16.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002546/1.838, allocations: 78.56 kB / 0.6337 GB, free: 16.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004403/1.843, allocations: 1.997 MB / 0.6356 GB, free: 15.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.843, allocations: 7.844 kB / 0.6356 GB, free: 15.14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005852/1.849, allocations: 1.082 MB / 0.6367 GB, free: 14.06 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.01722/1.866, allocations: 9.297 MB / 0.6458 GB, free: 5.367 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01146/1.878, allocations: 4.791 MB / 0.6504 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/1.878, allocations: 0 / 0.6504 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01035/1.888, allocations: 3.181 MB / 0.6535 GB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007117/1.895, allocations: 0.8763 MB / 0.6544 GB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4158/2.311, allocations: 50.65 MB / 0.7039 GB, free: 70.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005718/2.317, allocations: 3.52 MB / 0.7073 GB, free: 69.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00437/2.321, allocations: 0.7348 MB / 0.708 GB, free: 69.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004392/2.326, allocations: 2.024 MB / 0.71 GB, free: 69.44 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/2.326, allocations: 3.5 kB / 0.71 GB, free: 69.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.202/2.528, allocations: 93.63 MB / 0.8014 GB, free: 12.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/2.528, allocations: 227.7 kB / 0.8016 GB, free: 12.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.19/8.718, allocations: 3.906 kB / 0.8017 GB, free: 12.52 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat