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_MultiPhase.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_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.685/1.685, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003462, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1028, allocations: 38.76 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.402/0.5048, allocations: 102.5 MB / 374.7 MB, free: 3.367 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.5052, allocations: 93.75 kB / 374.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8651/1.37, allocations: 160 MB / 0.5223 GB, free: 27.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.37, allocations: 0 / 0.5223 GB, free: 27.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006229/1.371, allocations: 167.8 kB / 0.5224 GB, free: 27.05 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.03033/1.401, allocations: 7.003 MB / 0.5293 GB, free: 19.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/1.401, allocations: 16.02 kB / 0.5293 GB, free: 19.94 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003921/1.405, allocations: 0.9458 MB / 0.5302 GB, free: 18.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007518/1.413, allocations: 1.115 MB / 0.5313 GB, free: 17.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01583/1.429, allocations: 4.914 MB / 0.5361 GB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006498/1.429, allocations: 0.5017 MB / 0.5366 GB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002864/1.432, allocations: 0.6717 MB / 0.5372 GB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02849/1.461, allocations: 8.847 MB / 0.5459 GB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002424/1.461, allocations: 11.91 kB / 0.5459 GB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001271/1.462, allocations: 291.9 kB / 0.5462 GB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003339/1.463, allocations: 313.7 kB / 0.5465 GB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2787/1.742, allocations: 6.866 MB / 0.5532 GB, free: 34.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06828/1.81, allocations: 27.7 MB / 0.5802 GB, free: 29.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008804/1.819, allocations: 5.461 MB / 0.5855 GB, free: 27.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003123/1.819, allocations: 36.81 kB / 0.5856 GB, free: 27.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.406e-05/1.819, allocations: 60.48 kB / 0.5856 GB, free: 27.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=268): time 7.914e-06/1.819, allocations: 2.594 kB / 0.5856 GB, free: 27.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=316): time 0.04923/1.868, allocations: 13.83 MB / 0.5991 GB, free: 24.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/1.869, allocations: 84.36 kB / 0.5992 GB, free: 24.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007199/1.876, allocations: 3.095 MB / 0.6022 GB, free: 22.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006719/1.876, allocations: 79.61 kB / 0.6023 GB, free: 22.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002421/1.879, allocations: 2.992 MB / 0.6052 GB, free: 20.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001372/1.88, allocations: 1.078 MB / 0.6063 GB, free: 19.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/1.881, allocations: 74.66 kB / 0.6064 GB, free: 19.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002177/1.881, allocations: 452.7 kB / 0.6068 GB, free: 19.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003986/1.885, allocations: 1.609 MB / 0.6084 GB, free: 18.64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005113/1.89, allocations: 2.597 MB / 0.6109 GB, free: 16.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005544/1.896, allocations: 2.105 MB / 0.613 GB, free: 15.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.099e-05/1.896, allocations: 7.469 kB / 0.613 GB, free: 15.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.01536/1.911, allocations: 5.665 MB / 0.6185 GB, free: 13.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.077e-05/1.911, allocations: 19.53 kB / 0.6185 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-05/1.911, allocations: 29.28 kB / 0.6185 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003831/1.915, allocations: 0.9474 MB / 0.6195 GB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005814/1.921, allocations: 0.7863 MB / 0.6202 GB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0219/1.943, allocations: 15.17 MB / 0.6351 GB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005009/1.948, allocations: 161.9 kB / 0.6352 GB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008424/1.949, allocations: 156 kB / 0.6354 GB, free: 1.309 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 137 * 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 (407): * Single equations (assignments): 399 * 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: 6 * 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: 6 {(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 18,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005857/1.955, allocations: 2.122 MB / 0.6374 GB, free: 228 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/1.956, allocations: 399.8 kB / 0.6378 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01523/1.971, allocations: 5.016 MB / 0.6427 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.883e-05/1.971, allocations: 31.66 kB / 0.6427 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-05/1.971, allocations: 19.14 kB / 0.6428 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-05/1.971, allocations: 13.22 kB / 0.6428 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0384/2.01, allocations: 12.77 MB / 0.6552 GB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.303e-05/2.01, allocations: 4 kB / 0.6552 GB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004235/2.014, allocations: 464.4 kB / 0.6557 GB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004626/2.019, allocations: 1.064 MB / 0.6567 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005863/2.019, allocations: 80.97 kB / 0.6568 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03272/2.052, allocations: 18.46 MB / 0.6748 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.631e-05/2.052, allocations: 15.89 kB / 0.6749 GB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02005/2.072, allocations: 7.814 MB / 0.6825 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003242/2.076, allocations: 0.8398 MB / 0.6833 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001397/2.077, allocations: 72 kB / 0.6834 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004104/2.081, allocations: 146.8 kB / 0.6835 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001211/2.082, allocations: 239.6 kB / 0.6837 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004721/2.083, allocations: 89.48 kB / 0.6838 GB, free: 10.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008667/2.092, allocations: 2.356 MB / 0.6861 GB, free: 8.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.042e-06/2.092, allocations: 4 kB / 0.6861 GB, free: 8.066 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008945/2.101, allocations: 1.275 MB / 0.6874 GB, free: 6.797 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (236): * Single equations (assignments): 229 * 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 {(4,93.8%) 16,(1,100.0%) 5,(4,93.8%) 16,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3196/2.42, allocations: 10.16 MB / 0.6973 GB, free: 71.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01425/2.435, allocations: 5.295 MB / 0.7025 GB, free: 71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/2.435, allocations: 3.375 kB / 0.7025 GB, free: 71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009639/2.444, allocations: 3.374 MB / 0.7058 GB, free: 70.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008521/2.453, allocations: 1.035 MB / 0.7068 GB, free: 70.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1398/2.593, allocations: 58.98 MB / 0.7644 GB, free: 33.72 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009244/2.602, allocations: 4.446 MB / 0.7687 GB, free: 32.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.005208/2.607, allocations: 0.7882 MB / 0.7695 GB, free: 32.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006167/2.614, allocations: 2.576 MB / 0.772 GB, free: 32.73 MB / 394.7 MB Notification: Performance of SimCode: time 2.315e-06/2.614, allocations: 4 kB / 0.772 GB, free: 32.72 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5746/3.188, allocations: 110.1 MB / 0.8795 GB, free: 70.01 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002799/3.189, allocations: 236.2 kB / 0.8797 GB, free: 69.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.082/10.27, allocations: 0 / 0.8797 GB, free: 69.77 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat