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_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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.548/1.548, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 8 kB / 233.3 MB, free: 2.91 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07747/0.07784, allocations: 38.77 MB / 272.1 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3845/0.4624, allocations: 102.5 MB / 374.6 MB, free: 3.887 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.4628, allocations: 89.62 kB / 374.7 MB, free: 3.836 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7871/1.25, allocations: 160 MB / 0.5222 GB, free: 27.79 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.945e-06/1.25, allocations: 0 / 0.5222 GB, free: 27.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006191/1.251, allocations: 175.8 kB / 0.5224 GB, free: 27.62 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.02758/1.278, allocations: 6.999 MB / 0.5292 GB, free: 20.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/1.278, allocations: 12.02 kB / 0.5292 GB, free: 20.52 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003478/1.282, allocations: 0.9535 MB / 0.5302 GB, free: 19.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007035/1.289, allocations: 1.115 MB / 0.5313 GB, free: 18.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/1.303, allocations: 4.914 MB / 0.5361 GB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004568/1.303, allocations: 0.4978 MB / 0.5365 GB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002158/1.305, allocations: 0.6678 MB / 0.5372 GB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02419/1.329, allocations: 8.851 MB / 0.5458 GB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002478/1.33, allocations: 11.91 kB / 0.5459 GB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001207/1.331, allocations: 291.9 kB / 0.5461 GB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003301/1.331, allocations: 305.7 kB / 0.5464 GB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2781/1.609, allocations: 6.876 MB / 0.5531 GB, free: 34.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06609/1.676, allocations: 27.7 MB / 0.5802 GB, free: 29.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008718/1.684, allocations: 5.458 MB / 0.5855 GB, free: 27.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000262/1.685, allocations: 42.5 kB / 0.5856 GB, free: 27.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/1.685, allocations: 63.45 kB / 0.5856 GB, free: 27.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=268): time 6.652e-06/1.685, allocations: 0 / 0.5856 GB, free: 27.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=316): time 0.04739/1.732, allocations: 13.82 MB / 0.5991 GB, free: 24.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/1.732, allocations: 86.8 kB / 0.5992 GB, free: 24.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006295/1.738, allocations: 3.093 MB / 0.6022 GB, free: 23.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006056/1.739, allocations: 77.3 kB / 0.6023 GB, free: 23.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001978/1.741, allocations: 2.791 MB / 0.605 GB, free: 20.81 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001319/1.742, allocations: 1.076 MB / 0.6061 GB, free: 19.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/1.743, allocations: 73.56 kB / 0.6061 GB, free: 19.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002207/1.743, allocations: 456.9 kB / 0.6066 GB, free: 19.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003858/1.747, allocations: 1.607 MB / 0.6081 GB, free: 18.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00426/1.751, allocations: 2.604 MB / 0.6107 GB, free: 17.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004678/1.756, allocations: 2.1 MB / 0.6127 GB, free: 16.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.302e-05/1.756, allocations: 6.938 kB / 0.6127 GB, free: 16.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.01364/1.77, allocations: 5.418 MB / 0.618 GB, free: 13.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.557e-05/1.77, allocations: 17.62 kB / 0.6181 GB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.655e-05/1.77, allocations: 31.84 kB / 0.6181 GB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003595/1.773, allocations: 0.952 MB / 0.619 GB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005402/1.779, allocations: 0.7823 MB / 0.6198 GB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02076/1.8, allocations: 15.17 MB / 0.6346 GB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004667/1.804, allocations: 163.3 kB / 0.6347 GB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003979/1.805, allocations: 151.7 kB / 0.6349 GB, free: 1.703 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.005368/1.81, allocations: 2.124 MB / 0.637 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/1.811, allocations: 405.2 kB / 0.6374 GB, free: 420 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01536/1.827, allocations: 5.163 MB / 0.6424 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.998e-05/1.827, allocations: 31.38 kB / 0.6424 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/1.827, allocations: 14.81 kB / 0.6424 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-05/1.827, allocations: 25.52 kB / 0.6425 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0321/1.859, allocations: 12.76 MB / 0.6549 GB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/1.859, allocations: 4 kB / 0.6549 GB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003664/1.863, allocations: 466.4 kB / 0.6554 GB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004244/1.867, allocations: 1.065 MB / 0.6564 GB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003161/1.867, allocations: 79.19 kB / 0.6565 GB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0303/1.897, allocations: 18.47 MB / 0.6745 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.299e-05/1.897, allocations: 11.95 kB / 0.6745 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01943/1.917, allocations: 7.866 MB / 0.6822 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002784/1.92, allocations: 0.8349 MB / 0.683 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008826/1.921, allocations: 72 kB / 0.6831 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00315/1.924, allocations: 151.1 kB / 0.6832 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007135/1.925, allocations: 238.3 kB / 0.6835 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002812/1.925, allocations: 90 kB / 0.6836 GB, free: 11.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005489/1.93, allocations: 2.355 MB / 0.6859 GB, free: 9.805 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.93, allocations: 0 / 0.6859 GB, free: 9.805 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006777/1.937, allocations: 1.277 MB / 0.6871 GB, free: 8.535 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.2928/2.23, allocations: 10.36 MB / 0.6972 GB, free: 73.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01342/2.243, allocations: 5.302 MB / 0.7024 GB, free: 72.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/2.244, allocations: 5.906 kB / 0.7024 GB, free: 72.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008199/2.252, allocations: 3.364 MB / 0.7057 GB, free: 71.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007252/2.259, allocations: 1.039 MB / 0.7067 GB, free: 71.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09914/2.358, allocations: 58.82 MB / 0.7642 GB, free: 35.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006301/2.365, allocations: 4.344 MB / 0.7684 GB, free: 34.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005202/2.37, allocations: 2.595 MB / 0.7709 GB, free: 34.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.133e-06/2.37, allocations: 0 / 0.7709 GB, free: 34.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.074/8.444, allocations: 362.2 MB / 1.125 GB, free: 64.26 MB / 410.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_MultiPhase_res.mat does not exist to compare? outputFormat=mat