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.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.613/1.613, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005383/0.0005384, allocations: 11.98 kB / 233.4 MB, free: 2.91 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08399, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4271/0.5111, allocations: 122.2 MB / 394.3 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.5115, allocations: 87.45 kB / 394.4 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6846/1.196, allocations: 124 MB / 0.5063 GB, free: 45.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.297e-06/1.196, allocations: 4 kB / 0.5063 GB, free: 45.63 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006321/1.197, allocations: 139.8 kB / 0.5064 GB, free: 45.49 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: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.02408/1.221, allocations: 5.839 MB / 0.5121 GB, free: 39.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/1.221, allocations: 12.02 kB / 0.5121 GB, free: 39.56 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0032/1.224, allocations: 0.7562 MB / 0.5129 GB, free: 38.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005997/1.23, allocations: 0.8943 MB / 0.5137 GB, free: 37.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01312/1.243, allocations: 3.954 MB / 0.5176 GB, free: 33.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005021/1.244, allocations: 406.9 kB / 0.518 GB, free: 33.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0022/1.246, allocations: 0.5311 MB / 0.5185 GB, free: 32.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02311/1.269, allocations: 6.845 MB / 0.5252 GB, free: 25.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003102/1.27, allocations: 11.89 kB / 0.5252 GB, free: 25.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001827/1.272, allocations: 232 kB / 0.5254 GB, free: 25.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002849/1.272, allocations: 242.6 kB / 0.5257 GB, free: 25.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01806/1.29, allocations: 5.344 MB / 0.5309 GB, free: 20.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.358/1.648, allocations: 22.47 MB / 0.5528 GB, free: 39.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007291/1.655, allocations: 4.386 MB / 0.5571 GB, free: 37.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000607/1.656, allocations: 156.1 kB / 0.5573 GB, free: 37.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.867e-05/1.656, allocations: 61.31 kB / 0.5573 GB, free: 37.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=245): time 6.011e-06/1.656, allocations: 0 / 0.5573 GB, free: 37.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=297): time 0.06708/1.723, allocations: 16.11 MB / 0.5731 GB, free: 35.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/1.723, allocations: 84.03 kB / 0.5731 GB, free: 35.53 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007338/1.731, allocations: 2.876 MB / 0.5759 GB, free: 35.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006994/1.731, allocations: 76.17 kB / 0.576 GB, free: 35.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002088/1.733, allocations: 2.343 MB / 0.5783 GB, free: 34.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001461/1.735, allocations: 1.007 MB / 0.5793 GB, free: 33.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003654/1.735, allocations: 71.94 kB / 0.5794 GB, free: 33.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002375/1.736, allocations: 456.4 kB / 0.5798 GB, free: 33.33 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004779/1.74, allocations: 1.62 MB / 0.5814 GB, free: 33.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005491/1.746, allocations: 2.678 MB / 0.584 GB, free: 32.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005682/1.752, allocations: 2.075 MB / 0.586 GB, free: 32.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-05/1.752, allocations: 11 kB / 0.586 GB, free: 32.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=462) (initialization): time 0.01583/1.768, allocations: 5.444 MB / 0.5913 GB, free: 31.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.915e-05/1.768, allocations: 20.78 kB / 0.5914 GB, free: 31.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-05/1.768, allocations: 43.78 kB / 0.5914 GB, free: 31.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003697/1.772, allocations: 0.9352 MB / 0.5923 GB, free: 31.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005943/1.778, allocations: 0.8265 MB / 0.5931 GB, free: 31.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/1.797, allocations: 10.95 MB / 0.6038 GB, free: 27.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00508/1.802, allocations: 225.4 kB / 0.604 GB, free: 27.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000835/1.803, allocations: 159.4 kB / 0.6042 GB, free: 27.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 151 * 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 (403): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(4,93.8%) 17,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004825/1.807, allocations: 1.607 MB / 0.6058 GB, free: 27.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001248/1.809, allocations: 389.4 kB / 0.6061 GB, free: 27.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01405/1.823, allocations: 4.895 MB / 0.6109 GB, free: 24.97 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.491e-05/1.823, allocations: 28.19 kB / 0.6109 GB, free: 24.97 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.393e-05/1.823, allocations: 10.06 kB / 0.6109 GB, free: 24.97 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.657e-05/1.823, allocations: 16.88 kB / 0.611 GB, free: 24.97 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02961/1.853, allocations: 10.99 MB / 0.6217 GB, free: 20.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01187/1.865, allocations: 4.112 MB / 0.6257 GB, free: 18.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004114/1.869, allocations: 0.4887 MB / 0.6262 GB, free: 18.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004351/1.873, allocations: 1.049 MB / 0.6272 GB, free: 18.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004897/1.874, allocations: 73.06 kB / 0.6273 GB, free: 18.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02322/1.897, allocations: 16 MB / 0.6429 GB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/1.897, allocations: 15.31 kB / 0.6429 GB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02352/1.92, allocations: 8.24 MB / 0.651 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003177/1.924, allocations: 0.7847 MB / 0.6517 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/1.925, allocations: 70.81 kB / 0.6518 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004228/1.929, allocations: 186.9 kB / 0.652 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009545/1.93, allocations: 224.2 kB / 0.6522 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003134/1.931, allocations: 86.05 kB / 0.6523 GB, free: 11.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005795/1.936, allocations: 2.188 MB / 0.6544 GB, free: 10.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.937, allocations: 0 / 0.6544 GB, free: 10.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006973/1.944, allocations: 1.161 MB / 0.6555 GB, free: 8.875 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (230): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 17,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02625/1.97, allocations: 10.62 MB / 0.6659 GB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01434/1.984, allocations: 5.026 MB / 0.6708 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.984, allocations: 0 / 0.6708 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009699/1.994, allocations: 3.27 MB / 0.674 GB, free: 8.117 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006642/2.001, allocations: 0.827 MB / 0.6748 GB, free: 7.461 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4292/2.43, allocations: 56.93 MB / 0.7304 GB, free: 66.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007597/2.438, allocations: 3.508 MB / 0.7338 GB, free: 65.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006628/2.444, allocations: 2.144 MB / 0.7359 GB, free: 65.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.432e-06/2.444, allocations: 0 / 0.7359 GB, free: 65.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.101/7.545, allocations: 233.5 MB / 0.964 GB, free: 9.629 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.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat