Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.119/2.119, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003564, allocations: 8 kB / 264.1 MB, free: 3.449 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3015, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5675/0.869, allocations: 161.2 MB / 469.8 MB, free: 36.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003749/0.8695, allocations: 104.1 kB / 469.9 MB, free: 36.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.123/2.993, allocations: 395.1 MB / 0.8448 GB, free: 32.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.745e-06/2.993, allocations: 0 / 0.8448 GB, free: 32.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009956/2.994, allocations: 258.9 kB / 0.845 GB, free: 32.32 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.05424/3.048, allocations: 11 MB / 0.8558 GB, free: 26.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/3.048, allocations: 8.031 kB / 0.8558 GB, free: 26.76 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009508/3.058, allocations: 1.793 MB / 0.8575 GB, free: 25.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03624/3.094, allocations: 4.42 MB / 0.8618 GB, free: 20.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03494/3.129, allocations: 8.889 MB / 0.8705 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001599/3.131, allocations: 0.8297 MB / 0.8713 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006023/3.137, allocations: 1.081 MB / 0.8724 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4296/3.566, allocations: 17.48 MB / 0.8895 GB, free: 27.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007329/3.567, allocations: 19.53 kB / 0.8895 GB, free: 27.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005588/3.573, allocations: 472 kB / 0.8899 GB, free: 27.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001692/3.574, allocations: 0.6977 MB / 0.8906 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05629/3.631, allocations: 15.32 MB / 0.9056 GB, free: 26.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1859/3.817, allocations: 58.05 MB / 0.9623 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04829/3.865, allocations: 17.22 MB / 0.9791 GB, free: 15.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08708/3.952, allocations: 19.04 MB / 0.9977 GB, free: 5.945 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/3.952, allocations: 89.67 kB / 0.9977 GB, free: 5.867 MB / 442.7 MB Notification: Performance of pre-optimization done (n=642): time 1.793e-05/3.952, allocations: 0 / 0.9977 GB, free: 5.867 MB / 442.7 MB Notification: Performance of matching and sorting (n=669): time 0.172/4.124, allocations: 35.75 MB / 1.033 GB, free: 1.344 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/4.125, allocations: 139.7 kB / 1.033 GB, free: 1.238 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01819/4.143, allocations: 3.918 MB / 1.037 GB, free: 15.03 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002086/4.145, allocations: 117.7 kB / 1.037 GB, free: 14.91 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007614/4.153, allocations: 4.577 MB / 1.041 GB, free: 10.85 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00594/4.159, allocations: 2.236 MB / 1.043 GB, free: 8.836 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002366/4.161, allocations: 144 kB / 1.044 GB, free: 8.695 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001479/4.163, allocations: 0.6096 MB / 1.044 GB, free: 8.172 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02231/4.185, allocations: 4.43 MB / 1.048 GB, free: 4.383 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5259/4.711, allocations: 6.434 MB / 1.055 GB, free: 72.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/4.727, allocations: 5.53 MB / 1.06 GB, free: 72.81 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000188/4.728, allocations: 17.22 kB / 1.06 GB, free: 72.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.04285/4.77, allocations: 13.24 MB / 1.073 GB, free: 72.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.094e-05/4.771, allocations: 30.16 kB / 1.073 GB, free: 72.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/4.771, allocations: 65.47 kB / 1.073 GB, free: 72.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008444/4.779, allocations: 2.42 MB / 1.076 GB, free: 72.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01227/4.792, allocations: 1.53 MB / 1.077 GB, free: 72.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01598/4.808, allocations: 10.46 MB / 1.087 GB, free: 67.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01079/4.818, allocations: 490.5 kB / 1.088 GB, free: 67.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002405/4.821, allocations: 336.6 kB / 1.088 GB, free: 67.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * 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 (799): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.0123/4.833, allocations: 3.787 MB / 1.092 GB, free: 67.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002684/4.836, allocations: 0.5484 MB / 1.092 GB, free: 67.55 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03714/4.873, allocations: 11.78 MB / 1.104 GB, free: 66.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02513/4.898, allocations: 8.475 MB / 1.112 GB, free: 66.73 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.337e-05/4.898, allocations: 8.656 kB / 1.112 GB, free: 66.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001702/4.899, allocations: 31.06 kB / 1.112 GB, free: 66.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07183/4.97, allocations: 24.46 MB / 1.136 GB, free: 59.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001066/4.971, allocations: 11.47 kB / 1.136 GB, free: 59.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008248/4.979, allocations: 0.9158 MB / 1.137 GB, free: 59.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008544/4.987, allocations: 2.425 MB / 1.139 GB, free: 58.84 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00179/4.989, allocations: 147.6 kB / 1.139 GB, free: 58.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03134/5.021, allocations: 14.2 MB / 1.153 GB, free: 48.16 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-05/5.021, allocations: 9.672 kB / 1.153 GB, free: 48.16 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04939/5.07, allocations: 18.36 MB / 1.171 GB, free: 39.26 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006092/5.076, allocations: 1.564 MB / 1.173 GB, free: 38.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002842/5.079, allocations: 106.4 kB / 1.173 GB, free: 38.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007544/5.087, allocations: 314.6 kB / 1.173 GB, free: 38.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002419/5.089, allocations: 0.5064 MB / 1.174 GB, free: 38.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001347/5.091, allocations: 182 kB / 1.174 GB, free: 38.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008009/5.099, allocations: 2.921 MB / 1.177 GB, free: 36.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.243e-06/5.099, allocations: 3.562 kB / 1.177 GB, free: 36.96 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01222/5.111, allocations: 2.004 MB / 1.179 GB, free: 36.25 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (481): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.04838/5.159, allocations: 20.41 MB / 1.199 GB, free: 17.76 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02899/5.188, allocations: 11 MB / 1.209 GB, free: 8.203 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.334e-05/5.189, allocations: 5.812 kB / 1.209 GB, free: 8.199 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0164/5.205, allocations: 5.837 MB / 1.215 GB, free: 3.094 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/5.215, allocations: 1.066 MB / 1.216 GB, free: 2.254 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6147/5.83, allocations: 108.5 MB / 1.322 GB, free: 10.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01734/5.847, allocations: 6.982 MB / 1.329 GB, free: 9.23 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01168/5.859, allocations: 1.694 MB / 1.33 GB, free: 9.051 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01156/5.871, allocations: 4.094 MB / 1.334 GB, free: 9.043 MB / 474.7 MB Notification: Performance of SimCode: time 1.683e-06/5.871, allocations: 4 kB / 1.334 GB, free: 9.039 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.748/6.619, allocations: 181.7 MB / 1.512 GB, free: 33.99 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/6.619, allocations: 269.8 kB / 1.512 GB, free: 33.63 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/17.5, allocations: 0 / 1.512 GB, free: 33.63 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat