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.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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.644/1.644, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004693/0.0004692, allocations: 8 kB / 233.3 MB, free: 0.8203 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08328/0.08377, allocations: 38.77 MB / 272.1 MB, free: 9.973 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3789/0.4627, allocations: 99.41 MB / 371.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.4631, allocations: 91.94 kB / 371.6 MB, free: 15.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7411/1.204, allocations: 150.7 MB / 0.5101 GB, free: 28.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.867e-06/1.204, allocations: 0 / 0.5101 GB, free: 28.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005763/1.205, allocations: 171.8 kB / 0.5102 GB, free: 28.29 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.02706/1.232, allocations: 6.725 MB / 0.5168 GB, free: 21.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/1.232, allocations: 8.031 kB / 0.5168 GB, free: 21.47 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003429/1.235, allocations: 0.9089 MB / 0.5177 GB, free: 20.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006577/1.242, allocations: 1.069 MB / 0.5188 GB, free: 19.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01307/1.255, allocations: 4.716 MB / 0.5234 GB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004431/1.256, allocations: 493.3 kB / 0.5238 GB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002091/1.258, allocations: 0.6443 MB / 0.5245 GB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02368/1.281, allocations: 8.584 MB / 0.5328 GB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000218/1.282, allocations: 0 / 0.5328 GB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001098/1.283, allocations: 284 kB / 0.5331 GB, free: 4.465 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003069/1.283, allocations: 285.3 kB / 0.5334 GB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.279/1.562, allocations: 6.683 MB / 0.5399 GB, free: 35.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06509/1.627, allocations: 26.51 MB / 0.5658 GB, free: 30.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008769/1.636, allocations: 5.37 MB / 0.571 GB, free: 28.53 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000267/1.636, allocations: 31.12 kB / 0.5711 GB, free: 28.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/1.636, allocations: 67.06 kB / 0.5711 GB, free: 28.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=254): time 5.15e-06/1.636, allocations: 0.5625 kB / 0.5711 GB, free: 28.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=296): time 0.04353/1.68, allocations: 13.16 MB / 0.584 GB, free: 26.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/1.68, allocations: 89.16 kB / 0.5841 GB, free: 26.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0059/1.686, allocations: 2.84 MB / 0.5869 GB, free: 25.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005937/1.687, allocations: 76.48 kB / 0.5869 GB, free: 25.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001812/1.688, allocations: 2.672 MB / 0.5895 GB, free: 23.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.69, allocations: 1.019 MB / 0.5905 GB, free: 22.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002937/1.69, allocations: 70.84 kB / 0.5906 GB, free: 22.58 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000205/1.69, allocations: 447.9 kB / 0.591 GB, free: 22.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003737/1.694, allocations: 1.529 MB / 0.5925 GB, free: 21.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004186/1.698, allocations: 2.459 MB / 0.5949 GB, free: 19.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004617/1.703, allocations: 1.992 MB / 0.5969 GB, free: 18.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.412e-05/1.703, allocations: 7.281 kB / 0.5969 GB, free: 18.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=447) (initialization): time 0.01281/1.716, allocations: 5.146 MB / 0.6019 GB, free: 16.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/1.716, allocations: 20.44 kB / 0.6019 GB, free: 16.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.487e-05/1.716, allocations: 30.52 kB / 0.6019 GB, free: 16.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003564/1.719, allocations: 0.9162 MB / 0.6028 GB, free: 16.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005131/1.725, allocations: 0.7375 MB / 0.6036 GB, free: 16.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02068/1.745, allocations: 14.79 MB / 0.618 GB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004433/1.75, allocations: 159.3 kB / 0.6182 GB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000721/1.751, allocations: 141.2 kB / 0.6183 GB, free: 4.895 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.005731/1.756, allocations: 2.062 MB / 0.6203 GB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.757, allocations: 370.7 kB / 0.6207 GB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/1.77, allocations: 4.782 MB / 0.6253 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-05/1.77, allocations: 35.23 kB / 0.6254 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-05/1.77, allocations: 14 kB / 0.6254 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.883e-05/1.77, allocations: 13.5 kB / 0.6254 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03149/1.802, allocations: 11.72 MB / 0.6368 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.276e-05/1.802, allocations: 6 kB / 0.6368 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003501/1.805, allocations: 434 kB / 0.6373 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004231/1.81, allocations: 1.055 MB / 0.6383 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00051/1.81, allocations: 75.95 kB / 0.6384 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03158/1.842, allocations: 18.46 MB / 0.6564 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.799e-06/1.842, allocations: 9.062 kB / 0.6564 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/1.86, allocations: 7.332 MB / 0.6636 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002855/1.863, allocations: 0.7828 MB / 0.6643 GB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001098/1.864, allocations: 68 kB / 0.6644 GB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00346/1.868, allocations: 137.4 kB / 0.6645 GB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007693/1.869, allocations: 230.5 kB / 0.6647 GB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000288/1.869, allocations: 86.33 kB / 0.6648 GB, free: 3.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005582/1.875, allocations: 2.171 MB / 0.6669 GB, free: 1.391 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.875, allocations: 0 / 0.6669 GB, free: 1.391 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006813/1.882, allocations: 1.2 MB / 0.6681 GB, free: 200 kB / 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.02039/1.902, allocations: 9.416 MB / 0.6773 GB, free: 7.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01379/1.916, allocations: 5.071 MB / 0.6823 GB, free: 2.637 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/1.916, allocations: 4 kB / 0.6823 GB, free: 2.633 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2685/2.184, allocations: 3.257 MB / 0.6854 GB, free: 78.56 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007048/2.191, allocations: 0.9338 MB / 0.6864 GB, free: 78.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09926/2.291, allocations: 54.66 MB / 0.7397 GB, free: 45.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007114/2.298, allocations: 4.209 MB / 0.7438 GB, free: 44.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00545/2.303, allocations: 2.459 MB / 0.7462 GB, free: 44.52 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/2.303, allocations: 0 / 0.7462 GB, free: 44.52 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.647/7.95, allocations: 345.7 MB / 1.084 GB, free: 35.23 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat