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.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,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.679/1.679, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000485/0.0004846, allocations: 8 kB / 233.4 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08466/0.08519, allocations: 38.77 MB / 272.1 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.451/0.5363, allocations: 122.2 MB / 394.4 MB, free: 80 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.5366, allocations: 95.86 kB / 394.5 MB, free: 24 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7251/1.262, allocations: 124 MB / 0.5063 GB, free: 45.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.262, allocations: 0 / 0.5063 GB, free: 45.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005616/1.262, allocations: 135.8 kB / 0.5065 GB, free: 45.15 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: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.02407/1.286, allocations: 5.847 MB / 0.5122 GB, free: 39.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/1.287, allocations: 8.031 kB / 0.5122 GB, free: 39.22 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003158/1.29, allocations: 0.7524 MB / 0.5129 GB, free: 38.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00596/1.296, allocations: 0.8904 MB / 0.5138 GB, free: 37.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/1.309, allocations: 3.955 MB / 0.5176 GB, free: 33.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000466/1.309, allocations: 406.9 kB / 0.518 GB, free: 33.13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002172/1.311, allocations: 0.5271 MB / 0.5185 GB, free: 32.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02212/1.333, allocations: 6.841 MB / 0.5252 GB, free: 25.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003501/1.334, allocations: 19.83 kB / 0.5252 GB, free: 25.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001939/1.336, allocations: 228 kB / 0.5255 GB, free: 25.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002725/1.336, allocations: 234.7 kB / 0.5257 GB, free: 25.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01796/1.354, allocations: 5.356 MB / 0.5309 GB, free: 19.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.324/1.678, allocations: 22.47 MB / 0.5529 GB, free: 40.85 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007481/1.686, allocations: 4.394 MB / 0.5571 GB, free: 38.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006251/1.686, allocations: 156.7 kB / 0.5573 GB, free: 38.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/1.686, allocations: 59.98 kB / 0.5574 GB, free: 38.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=245): time 6.873e-06/1.686, allocations: 0 / 0.5574 GB, free: 38.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=297): time 0.07018/1.757, allocations: 16.1 MB / 0.5731 GB, free: 36.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/1.757, allocations: 83.88 kB / 0.5732 GB, free: 36.51 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007499/1.764, allocations: 2.874 MB / 0.576 GB, free: 36.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006699/1.765, allocations: 75.14 kB / 0.576 GB, free: 36.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002476/1.767, allocations: 2.525 MB / 0.5785 GB, free: 35.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001475/1.769, allocations: 1.016 MB / 0.5795 GB, free: 34.69 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004335/1.769, allocations: 73.62 kB / 0.5796 GB, free: 34.69 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002738/1.77, allocations: 453.9 kB / 0.58 GB, free: 34.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004825/1.775, allocations: 1.618 MB / 0.5816 GB, free: 34.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005874/1.78, allocations: 2.682 MB / 0.5842 GB, free: 33.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005776/1.786, allocations: 2.077 MB / 0.5862 GB, free: 33.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.862e-05/1.786, allocations: 7.469 kB / 0.5862 GB, free: 33.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=462) (initialization): time 0.01791/1.804, allocations: 5.667 MB / 0.5918 GB, free: 32.63 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/1.804, allocations: 21.7 kB / 0.5918 GB, free: 32.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.972e-05/1.805, allocations: 38.22 kB / 0.5918 GB, free: 32.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003941/1.808, allocations: 0.9397 MB / 0.5927 GB, free: 32.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006279/1.815, allocations: 0.8303 MB / 0.5935 GB, free: 32.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02019/1.835, allocations: 10.95 MB / 0.6042 GB, free: 28.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00559/1.841, allocations: 228.1 kB / 0.6045 GB, free: 28.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009609/1.842, allocations: 152.4 kB / 0.6046 GB, free: 28.45 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 151 * 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 (403): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(4,93.8%) 17,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00538/1.847, allocations: 1.609 MB / 0.6062 GB, free: 28.08 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0016/1.849, allocations: 387.5 kB / 0.6065 GB, free: 27.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01632/1.865, allocations: 4.905 MB / 0.6113 GB, free: 25.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.725e-05/1.865, allocations: 31.91 kB / 0.6114 GB, free: 25.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.08e-05/1.865, allocations: 10.28 kB / 0.6114 GB, free: 25.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.514e-05/1.865, allocations: 13.92 kB / 0.6114 GB, free: 25.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03506/1.9, allocations: 10.98 MB / 0.6221 GB, free: 21.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01266/1.913, allocations: 4.117 MB / 0.6261 GB, free: 19.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004342/1.918, allocations: 497.1 kB / 0.6266 GB, free: 19.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004725/1.922, allocations: 1.052 MB / 0.6276 GB, free: 18.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006925/1.923, allocations: 72.53 kB / 0.6277 GB, free: 18.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02513/1.948, allocations: 15.99 MB / 0.6433 GB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/1.948, allocations: 14.5 kB / 0.6433 GB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02088/1.969, allocations: 8.022 MB / 0.6512 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003431/1.973, allocations: 0.7917 MB / 0.6519 GB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001361/1.974, allocations: 70.84 kB / 0.652 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004459/1.979, allocations: 180.1 kB / 0.6522 GB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001143/1.98, allocations: 227 kB / 0.6524 GB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003754/1.98, allocations: 93.58 kB / 0.6525 GB, free: 12.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006587/1.987, allocations: 2.184 MB / 0.6546 GB, free: 10.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.987, allocations: 0 / 0.6546 GB, free: 10.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007546/1.994, allocations: 1.165 MB / 0.6558 GB, free: 9.047 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (230): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 17,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0269/2.021, allocations: 10.54 MB / 0.6661 GB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01573/2.037, allocations: 5.023 MB / 0.671 GB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/2.037, allocations: 1.969 kB / 0.671 GB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01021/2.047, allocations: 3.271 MB / 0.6742 GB, free: 8.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007355/2.055, allocations: 0.8206 MB / 0.675 GB, free: 7.461 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3968/2.452, allocations: 57.05 MB / 0.7307 GB, free: 68.01 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01058/2.462, allocations: 3.597 MB / 0.7342 GB, free: 67.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.007774/2.47, allocations: 0.7637 MB / 0.7349 GB, free: 67.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007718/2.478, allocations: 2.129 MB / 0.737 GB, free: 67.16 MB / 394.7 MB Notification: Performance of SimCode: time 2.003e-06/2.478, allocations: 0 / 0.737 GB, free: 67.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2277/2.706, allocations: 96.27 MB / 0.831 GB, free: 12.17 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/2.706, allocations: 216.9 kB / 0.8312 GB, free: 11.94 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.425/9.131, allocations: 0 / 0.8312 GB, free: 11.94 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat