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.SMR_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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.754/1.754, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003659, allocations: 12 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08608, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4067/0.4928, allocations: 99.42 MB / 371.5 MB, free: 6.02 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.4931, allocations: 87.7 kB / 371.6 MB, free: 5.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7738/1.267, allocations: 150.7 MB / 0.5101 GB, free: 39.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.116e-06/1.267, allocations: 0 / 0.5101 GB, free: 39.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007392/1.268, allocations: 167.8 kB / 0.5103 GB, free: 39.39 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.03092/1.299, allocations: 6.725 MB / 0.5168 GB, free: 32.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/1.299, allocations: 8.031 kB / 0.5168 GB, free: 32.56 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004199/1.303, allocations: 0.9167 MB / 0.5177 GB, free: 31.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007556/1.311, allocations: 1.057 MB / 0.5188 GB, free: 30.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01571/1.326, allocations: 4.712 MB / 0.5234 GB, free: 25.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006167/1.327, allocations: 493.3 kB / 0.5238 GB, free: 25.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00276/1.33, allocations: 0.6482 MB / 0.5245 GB, free: 24.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02831/1.358, allocations: 8.58 MB / 0.5329 GB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003074/1.359, allocations: 11.89 kB / 0.5329 GB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001994/1.361, allocations: 280 kB / 0.5331 GB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003214/1.361, allocations: 285.3 kB / 0.5334 GB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02187/1.383, allocations: 6.693 MB / 0.5399 GB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3768/1.76, allocations: 26.5 MB / 0.5658 GB, free: 33.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009627/1.769, allocations: 5.368 MB / 0.5711 GB, free: 31.42 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003254/1.77, allocations: 36.69 kB / 0.5711 GB, free: 31.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.534e-05/1.77, allocations: 62.97 kB / 0.5712 GB, free: 31.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=254): time 6.272e-06/1.77, allocations: 5.625 kB / 0.5712 GB, free: 31.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=296): time 0.0485/1.818, allocations: 13.17 MB / 0.584 GB, free: 29.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/1.818, allocations: 81.86 kB / 0.5841 GB, free: 28.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006972/1.825, allocations: 2.843 MB / 0.5869 GB, free: 28.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006559/1.826, allocations: 78.2 kB / 0.587 GB, free: 28.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002475/1.829, allocations: 2.85 MB / 0.5897 GB, free: 27.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001376/1.83, allocations: 1.011 MB / 0.5907 GB, free: 26.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003668/1.83, allocations: 73.75 kB / 0.5908 GB, free: 26.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002516/1.831, allocations: 443.3 kB / 0.5912 GB, free: 26.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004276/1.835, allocations: 1.528 MB / 0.5927 GB, free: 26.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005219/1.84, allocations: 2.459 MB / 0.5951 GB, free: 25.51 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006132/1.846, allocations: 1.994 MB / 0.5971 GB, free: 25.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.834e-05/1.847, allocations: 6.906 kB / 0.5971 GB, free: 25.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=447) (initialization): time 0.01577/1.862, allocations: 5.374 MB / 0.6023 GB, free: 24.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.857e-05/1.862, allocations: 18.59 kB / 0.6023 GB, free: 24.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.446e-05/1.863, allocations: 29.78 kB / 0.6024 GB, free: 24.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003998/1.867, allocations: 0.9197 MB / 0.6033 GB, free: 24.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005723/1.872, allocations: 0.7379 MB / 0.604 GB, free: 24.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02243/1.895, allocations: 14.78 MB / 0.6184 GB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004846/1.9, allocations: 148.8 kB / 0.6186 GB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008721/1.901, allocations: 142 kB / 0.6187 GB, free: 13.15 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (381): * Single equations (assignments): 373 * 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%) 16,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 16,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006302/1.907, allocations: 2.061 MB / 0.6207 GB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/1.908, allocations: 372.9 kB / 0.6211 GB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/1.924, allocations: 4.771 MB / 0.6257 GB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.766e-05/1.924, allocations: 29.88 kB / 0.6258 GB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.086e-05/1.924, allocations: 13.47 kB / 0.6258 GB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-05/1.924, allocations: 22.44 kB / 0.6258 GB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03287/1.957, allocations: 11.71 MB / 0.6372 GB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.379e-05/1.957, allocations: 3.531 kB / 0.6372 GB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003649/1.96, allocations: 443.4 kB / 0.6376 GB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006863/1.967, allocations: 1.061 MB / 0.6387 GB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008373/1.968, allocations: 72.8 kB / 0.6388 GB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0482/2.017, allocations: 18.46 MB / 0.6568 GB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/2.017, allocations: 7.953 kB / 0.6568 GB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03053/2.047, allocations: 7.327 MB / 0.6639 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004419/2.052, allocations: 0.7846 MB / 0.6647 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001899/2.054, allocations: 69.53 kB / 0.6648 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005905/2.06, allocations: 140 kB / 0.6649 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00133/2.061, allocations: 225.7 kB / 0.6651 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005062/2.062, allocations: 83.17 kB / 0.6652 GB, free: 12.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.009145/2.071, allocations: 2.171 MB / 0.6673 GB, free: 11.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.863e-06/2.071, allocations: 3.938 kB / 0.6673 GB, free: 11.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01111/2.082, allocations: 1.206 MB / 0.6685 GB, free: 9.816 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (216): * Single equations (assignments): 209 * 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.03291/2.115, allocations: 9.408 MB / 0.6777 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01653/2.131, allocations: 5.112 MB / 0.6827 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/2.132, allocations: 0 / 0.6827 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009595/2.141, allocations: 3.274 MB / 0.6859 GB, free: 9.332 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008075/2.149, allocations: 0.9316 MB / 0.6868 GB, free: 8.609 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4192/2.569, allocations: 55.31 MB / 0.7408 GB, free: 53.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008922/2.577, allocations: 4.321 MB / 0.745 GB, free: 52.41 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004807/2.582, allocations: 0.7388 MB / 0.7457 GB, free: 52.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005736/2.588, allocations: 2.445 MB / 0.7481 GB, free: 52.37 MB / 394.7 MB Notification: Performance of SimCode: time 1.543e-06/2.588, allocations: 0 / 0.7481 GB, free: 52.37 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5508/3.139, allocations: 102.3 MB / 0.8481 GB, free: 62.45 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003089/3.139, allocations: 232.1 kB / 0.8483 GB, free: 62.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.705/9.845, allocations: 0 / 0.8483 GB, free: 62.21 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat