Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.042/2.042, allocations: 194.8 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004857, allocations: 8 kB / 264.1 MB, free: 2.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.2999, allocations: 44.51 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5012/0.8012, allocations: 117 MB / 425.6 MB, free: 49.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.8015, allocations: 88.89 kB / 425.6 MB, free: 49.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.001/1.803, allocations: 192.7 MB / 0.6039 GB, free: 52.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.803, allocations: 3.844 kB / 0.6039 GB, free: 52.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00099/1.804, allocations: 205.1 kB / 0.6041 GB, free: 52.1 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03901/1.843, allocations: 8.718 MB / 0.6126 GB, free: 49.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.843, allocations: 6.875 kB / 0.6126 GB, free: 49.03 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005574/1.849, allocations: 1.179 MB / 0.6137 GB, free: 48.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01564/1.864, allocations: 1.916 MB / 0.6156 GB, free: 48.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02718/1.891, allocations: 7.071 MB / 0.6225 GB, free: 47.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009781/1.893, allocations: 0.6362 MB / 0.6231 GB, free: 47.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003988/1.897, allocations: 0.8456 MB / 0.624 GB, free: 47.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04102/1.938, allocations: 11.13 MB / 0.6348 GB, free: 46.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005763/1.938, allocations: 10.69 kB / 0.6348 GB, free: 46.49 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00349/1.942, allocations: 363.7 kB / 0.6352 GB, free: 46.49 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004781/1.942, allocations: 370.3 kB / 0.6355 GB, free: 46.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03109/1.973, allocations: 9.064 MB / 0.6444 GB, free: 46.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09984/2.073, allocations: 35.87 MB / 0.6794 GB, free: 28.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02502/2.098, allocations: 16.99 MB / 0.696 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02872/2.127, allocations: 9.405 MB / 0.7052 GB, free: 8.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.955e-05/2.127, allocations: 72.97 kB / 0.7053 GB, free: 8.262 MB / 426.7 MB Notification: Performance of pre-optimization done (n=327): time 7.875e-06/2.127, allocations: 0 / 0.7053 GB, free: 8.262 MB / 426.7 MB Notification: Performance of matching and sorting (n=381): time 0.06998/2.197, allocations: 16.62 MB / 0.7215 GB, free: 9.547 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.306e-05/2.197, allocations: 90.39 kB / 0.7216 GB, free: 9.445 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01205/2.21, allocations: 3.837 MB / 0.7253 GB, free: 6.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008814/2.211, allocations: 89.7 kB / 0.7254 GB, free: 6.086 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005754/2.216, allocations: 3.829 MB / 0.7292 GB, free: 2.676 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003118/2.219, allocations: 1.292 MB / 0.7304 GB, free: 1.512 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/2.221, allocations: 92 kB / 0.7305 GB, free: 1.422 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007715/2.221, allocations: 494.9 kB / 0.731 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01751/2.239, allocations: 2.239 MB / 0.7332 GB, free: 0 / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3594/2.599, allocations: 3.38 MB / 0.7365 GB, free: 63.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007822/2.606, allocations: 2.558 MB / 0.739 GB, free: 62.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.784e-05/2.607, allocations: 13.91 kB / 0.739 GB, free: 62.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=597) (initialization): time 0.02231/2.629, allocations: 6.685 MB / 0.7455 GB, free: 62.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.565e-05/2.629, allocations: 23.94 kB / 0.7455 GB, free: 62.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/2.629, allocations: 45.41 kB / 0.7456 GB, free: 62.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003437/2.633, allocations: 0.7788 MB / 0.7463 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008488/2.641, allocations: 1.096 MB / 0.7474 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/2.658, allocations: 10.53 MB / 0.7577 GB, free: 57.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007068/2.665, allocations: 257.5 kB / 0.7579 GB, free: 57.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/2.666, allocations: 200.8 kB / 0.7581 GB, free: 57.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 (541): * Single equations (assignments): 533 * 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 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008251/2.675, allocations: 2.538 MB / 0.7606 GB, free: 57.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/2.677, allocations: 495 kB / 0.7611 GB, free: 57.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0202/2.697, allocations: 5.72 MB / 0.7667 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.193e-05/2.697, allocations: 39 kB / 0.7667 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.337e-05/2.697, allocations: 10.78 kB / 0.7667 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001163/2.697, allocations: 18 kB / 0.7667 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04375/2.741, allocations: 13.83 MB / 0.7802 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.493e-05/2.741, allocations: 15.55 kB / 0.7803 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005831/2.747, allocations: 0.6616 MB / 0.7809 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004009/2.751, allocations: 0.908 MB / 0.7818 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008667/2.752, allocations: 92.2 kB / 0.7819 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02293/2.775, allocations: 14.29 MB / 0.7958 GB, free: 48.99 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/2.775, allocations: 9.188 kB / 0.7958 GB, free: 48.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0249/2.8, allocations: 9.126 MB / 0.8047 GB, free: 44.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004167/2.804, allocations: 0.9957 MB / 0.8057 GB, free: 43.79 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002283/2.807, allocations: 77.84 kB / 0.8058 GB, free: 43.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005821/2.813, allocations: 212.2 kB / 0.806 GB, free: 43.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001395/2.814, allocations: 292 kB / 0.8063 GB, free: 43.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008182/2.815, allocations: 108.4 kB / 0.8064 GB, free: 43.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00877/2.824, allocations: 2.922 MB / 0.8092 GB, free: 42.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.112e-06/2.824, allocations: 0 / 0.8092 GB, free: 42.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00946/2.833, allocations: 1.55 MB / 0.8107 GB, free: 42.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (303): * Single equations (assignments): 296 * 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 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(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.02711/2.86, allocations: 11.3 MB / 0.8218 GB, free: 35.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0166/2.877, allocations: 5.863 MB / 0.8275 GB, free: 33.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/2.877, allocations: 3.438 kB / 0.8275 GB, free: 33.37 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01048/2.888, allocations: 3.601 MB / 0.831 GB, free: 31.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009196/2.897, allocations: 1.061 MB / 0.8321 GB, free: 31.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.504/3.401, allocations: 78.66 MB / 0.9089 GB, free: 89.01 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01073/3.412, allocations: 5.224 MB / 0.914 GB, free: 88.13 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00759/3.419, allocations: 1.073 MB / 0.915 GB, free: 88.08 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007964/3.427, allocations: 3.316 MB / 0.9183 GB, free: 88.08 MB / 474.7 MB Notification: Performance of SimCode: time 1.262e-06/3.427, allocations: 0 / 0.9183 GB, free: 88.08 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2736/3.701, allocations: 125.1 MB / 1.04 GB, free: 36.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003474/3.702, allocations: 237.9 kB / 1.041 GB, free: 36.46 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.703/12.4, allocations: 0 / 1.041 GB, free: 36.46 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat