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.SMEE_Generator_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.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.596/1.596, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003596, allocations: 8 kB / 233.4 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.08126, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.5091, allocations: 107 MB / 379.2 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.5094, allocations: 93 kB / 379.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8833/1.393, allocations: 181.1 MB / 0.5473 GB, free: 1.086 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.647e-06/1.393, allocations: 0 / 0.5473 GB, free: 1.086 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008156/1.394, allocations: 207.8 kB / 0.5475 GB, free: 0.8828 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: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.315/1.709, allocations: 8.387 MB / 0.5557 GB, free: 16.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/1.709, allocations: 11.06 kB / 0.5557 GB, free: 16.38 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0049/1.714, allocations: 1.113 MB / 0.5567 GB, free: 16.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009921/1.724, allocations: 1.354 MB / 0.5581 GB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02198/1.746, allocations: 5.875 MB / 0.5638 GB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009851/1.747, allocations: 0.5965 MB / 0.5644 GB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003832/1.751, allocations: 0.799 MB / 0.5652 GB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03822/1.789, allocations: 10.39 MB / 0.5753 GB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005479/1.789, allocations: 13.69 kB / 0.5753 GB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002993/1.792, allocations: 346.2 kB / 0.5757 GB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004239/1.793, allocations: 329.8 kB / 0.576 GB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02712/1.82, allocations: 8.062 MB / 0.5838 GB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08571/1.906, allocations: 33.09 MB / 0.6162 GB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/1.917, allocations: 6.086 MB / 0.6221 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000498/1.917, allocations: 36.69 kB / 0.6221 GB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.016e-05/1.918, allocations: 69.28 kB / 0.6222 GB, free: 15.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=295): time 9.508e-06/1.918, allocations: 1.406 kB / 0.6222 GB, free: 15.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=349): time 0.07893/1.997, allocations: 15.71 MB / 0.6375 GB, free: 8.574 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/1.997, allocations: 89.2 kB / 0.6376 GB, free: 8.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01131/2.008, allocations: 3.786 MB / 0.6413 GB, free: 7.098 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008076/2.009, allocations: 83.3 kB / 0.6414 GB, free: 7.023 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004491/2.013, allocations: 3.634 MB / 0.645 GB, free: 4.277 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002087/2.016, allocations: 1.186 MB / 0.6461 GB, free: 3.355 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004891/2.016, allocations: 81.78 kB / 0.6462 GB, free: 3.293 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003706/2.016, allocations: 474.4 kB / 0.6466 GB, free: 2.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006105/2.023, allocations: 1.893 MB / 0.6485 GB, free: 2.176 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007649/2.03, allocations: 3.11 MB / 0.6515 GB, free: 15.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007237/2.038, allocations: 2.432 MB / 0.6539 GB, free: 14.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.69e-05/2.038, allocations: 9.844 kB / 0.6539 GB, free: 14.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=537) (initialization): time 0.02237/2.06, allocations: 6.441 MB / 0.6602 GB, free: 10.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.673e-05/2.06, allocations: 24.58 kB / 0.6602 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001104/2.06, allocations: 45.53 kB / 0.6603 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004115/2.064, allocations: 0.9086 MB / 0.6612 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007641/2.072, allocations: 0.9512 MB / 0.6621 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02448/2.097, allocations: 12.39 MB / 0.6742 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006581/2.103, allocations: 222.9 kB / 0.6744 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001202/2.105, allocations: 178.9 kB / 0.6746 GB, free: 12.53 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * 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 (469): * Single equations (assignments): 461 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(4,93.8%) 17,(1,100.0%) 5,(4,93.8%) 17,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01016/2.115, allocations: 2.468 MB / 0.677 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001918/2.117, allocations: 481.4 kB / 0.6774 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02083/2.138, allocations: 5.554 MB / 0.6829 GB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-05/2.138, allocations: 36 kB / 0.6829 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.933e-05/2.138, allocations: 15.38 kB / 0.6829 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-05/2.138, allocations: 18.89 kB / 0.6829 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6225/2.76, allocations: 14.07 MB / 0.6967 GB, free: 56.71 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.663e-05/2.761, allocations: 9 kB / 0.6967 GB, free: 56.71 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005035/2.766, allocations: 0.5618 MB / 0.6972 GB, free: 56.71 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004703/2.77, allocations: 1.05 MB / 0.6983 GB, free: 56.66 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000771/2.771, allocations: 80.27 kB / 0.6983 GB, free: 56.66 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0289/2.8, allocations: 16.02 MB / 0.714 GB, free: 50.02 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.667e-05/2.8, allocations: 14.98 kB / 0.714 GB, free: 50.02 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02388/2.824, allocations: 9.267 MB / 0.723 GB, free: 47.71 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004287/2.828, allocations: 0.9584 MB / 0.724 GB, free: 47.61 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002259/2.831, allocations: 78.09 kB / 0.7241 GB, free: 47.61 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00546/2.836, allocations: 201.8 kB / 0.7243 GB, free: 47.61 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001283/2.838, allocations: 286.7 kB / 0.7245 GB, free: 47.6 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007017/2.838, allocations: 103 kB / 0.7246 GB, free: 47.6 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.008615/2.847, allocations: 2.895 MB / 0.7275 GB, free: 47.42 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.102e-06/2.847, allocations: 0 / 0.7275 GB, free: 47.42 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.008985/2.856, allocations: 1.457 MB / 0.7289 GB, free: 47.42 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (259): * Single equations (assignments): 252 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(4,93.8%) 33,(4,93.8%) 17,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02555/2.882, allocations: 11.87 MB / 0.7405 GB, free: 43.13 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.0163/2.898, allocations: 5.765 MB / 0.7461 GB, free: 42.29 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-05/2.898, allocations: 1.938 kB / 0.7461 GB, free: 42.29 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01063/2.909, allocations: 3.724 MB / 0.7497 GB, free: 41.57 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009194/2.918, allocations: 1.053 MB / 0.7508 GB, free: 41.55 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1381/3.056, allocations: 71.86 MB / 0.8209 GB, free: 6.078 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01181/3.068, allocations: 5.124 MB / 0.8259 GB, free: 2.492 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.00657/3.075, allocations: 0.9276 MB / 0.8269 GB, free: 1.855 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01247/3.087, allocations: 3.339 MB / 0.8301 GB, free: 15.79 MB / 426.8 MB Notification: Performance of SimCode: time 1.704e-06/3.087, allocations: 0 / 0.8301 GB, free: 15.79 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6239/3.711, allocations: 122.2 MB / 0.9494 GB, free: 61.04 MB / 426.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/3.711, allocations: 245.4 kB / 0.9497 GB, free: 60.79 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/11.33, allocations: 2.953 kB / 0.9497 GB, free: 60.79 MB / 426.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat