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.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,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.024/2.024, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004874/0.0004875, allocations: 8 kB / 264.1 MB, free: 3.461 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2984, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.501/0.7995, allocations: 130.3 MB / 438.9 MB, free: 52.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004459/0.8, allocations: 95.78 kB / 439 MB, free: 52.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5441/1.344, allocations: 130.4 MB / 0.5561 GB, free: 10.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.807e-06/1.344, allocations: 4 kB / 0.5561 GB, free: 10.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007736/1.345, allocations: 135.9 kB / 0.5562 GB, free: 10.73 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02993/1.375, allocations: 6.008 MB / 0.5621 GB, free: 4.637 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/1.375, allocations: 16.03 kB / 0.5621 GB, free: 4.621 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003985/1.379, allocations: 0.7736 MB / 0.5629 GB, free: 3.836 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009902/1.389, allocations: 1.152 MB / 0.564 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3637/1.753, allocations: 4.91 MB / 0.5688 GB, free: 45.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007228/1.754, allocations: 421.1 kB / 0.5692 GB, free: 45.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002609/1.756, allocations: 0.5538 MB / 0.5697 GB, free: 45.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02518/1.781, allocations: 7.168 MB / 0.5767 GB, free: 44.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004127/1.782, allocations: 10.92 kB / 0.5767 GB, free: 44.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002051/1.784, allocations: 239 kB / 0.577 GB, free: 44.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003206/1.784, allocations: 249.3 kB / 0.5772 GB, free: 44.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01952/1.804, allocations: 5.795 MB / 0.5829 GB, free: 44.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06214/1.866, allocations: 23.76 MB / 0.6061 GB, free: 39.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/1.878, allocations: 8.713 MB / 0.6146 GB, free: 34.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02072/1.899, allocations: 6.768 MB / 0.6212 GB, free: 32.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.669e-05/1.899, allocations: 63.91 kB / 0.6212 GB, free: 32.78 MB / 410.7 MB Notification: Performance of pre-optimization done (n=250): time 6.993e-06/1.899, allocations: 2.516 kB / 0.6212 GB, free: 32.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=302): time 0.07008/1.969, allocations: 16.41 MB / 0.6373 GB, free: 27.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.672e-05/1.97, allocations: 84.31 kB / 0.6373 GB, free: 27.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008021/1.978, allocations: 2.942 MB / 0.6402 GB, free: 26.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006739/1.978, allocations: 76.98 kB / 0.6403 GB, free: 26.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002533/1.981, allocations: 2.633 MB / 0.6429 GB, free: 24.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001531/1.982, allocations: 1.027 MB / 0.6439 GB, free: 23.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004881/1.983, allocations: 75.06 kB / 0.6439 GB, free: 23.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003094/1.983, allocations: 456.5 kB / 0.6444 GB, free: 22.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005009/1.988, allocations: 1.627 MB / 0.646 GB, free: 22.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006054/1.994, allocations: 2.801 MB / 0.6487 GB, free: 20.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006144/2.001, allocations: 2.101 MB / 0.6508 GB, free: 19.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-05/2.001, allocations: 14.27 kB / 0.6508 GB, free: 19.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01832/2.019, allocations: 5.724 MB / 0.6564 GB, free: 17.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.544e-05/2.019, allocations: 29.62 kB / 0.6564 GB, free: 17.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/2.019, allocations: 39.56 kB / 0.6564 GB, free: 17.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003634/2.023, allocations: 0.862 MB / 0.6573 GB, free: 16.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006729/2.03, allocations: 0.8853 MB / 0.6581 GB, free: 16.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01714/2.047, allocations: 10.04 MB / 0.6679 GB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005425/2.052, allocations: 240.8 kB / 0.6682 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008466/2.053, allocations: 174.7 kB / 0.6683 GB, free: 10.06 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * 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 (431): * Single equations (assignments): 422 * 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,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004874/2.058, allocations: 1.618 MB / 0.6699 GB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/2.06, allocations: 394.2 kB / 0.6703 GB, free: 9.027 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01478/2.074, allocations: 4.884 MB / 0.6751 GB, free: 6.926 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.302e-05/2.074, allocations: 34.41 kB / 0.6751 GB, free: 6.922 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-05/2.075, allocations: 15.84 kB / 0.6751 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.902e-05/2.075, allocations: 11.06 kB / 0.6751 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0308/2.105, allocations: 10.57 MB / 0.6854 GB, free: 2.094 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01597/2.121, allocations: 4.337 MB / 0.6897 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004777/2.126, allocations: 0.5186 MB / 0.6902 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004726/2.131, allocations: 0.9847 MB / 0.6911 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006694/2.132, allocations: 70.8 kB / 0.6912 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02643/2.158, allocations: 15.11 MB / 0.706 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/2.158, allocations: 4 kB / 0.706 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0218/2.18, allocations: 7.655 MB / 0.7134 GB, free: 7.863 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00335/2.183, allocations: 0.8037 MB / 0.7142 GB, free: 7.129 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/2.185, allocations: 75.56 kB / 0.7143 GB, free: 7.059 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004627/2.19, allocations: 181.2 kB / 0.7145 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/2.191, allocations: 229.3 kB / 0.7147 GB, free: 6.777 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004419/2.191, allocations: 91.08 kB / 0.7148 GB, free: 6.695 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00653/2.198, allocations: 2.227 MB / 0.7169 GB, free: 4.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.92e-07/2.198, allocations: 4 kB / 0.717 GB, free: 4.836 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007038/2.205, allocations: 1.209 MB / 0.7181 GB, free: 3.641 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (241): * Single equations (assignments): 232 * 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 {(2,100.0%) 13,(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.3288/2.534, allocations: 9.721 MB / 0.7276 GB, free: 68.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01195/2.546, allocations: 4.995 MB / 0.7325 GB, free: 67.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/2.546, allocations: 3.625 kB / 0.7325 GB, free: 67.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008434/2.554, allocations: 3.17 MB / 0.7356 GB, free: 66.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006761/2.561, allocations: 0.8286 MB / 0.7364 GB, free: 66.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09517/2.656, allocations: 59.9 MB / 0.7949 GB, free: 27.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006613/2.663, allocations: 3.613 MB / 0.7984 GB, free: 26.33 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005584/2.668, allocations: 0.8455 MB / 0.7993 GB, free: 26.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005579/2.674, allocations: 2.233 MB / 0.8014 GB, free: 26.22 MB / 442.7 MB Notification: Performance of SimCode: time 1.462e-06/2.674, allocations: 0 / 0.8014 GB, free: 26.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.567/3.241, allocations: 97.37 MB / 0.8965 GB, free: 65.07 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002613/3.241, allocations: 232.9 kB / 0.8967 GB, free: 64.83 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.319/10.56, allocations: 1.781 kB / 0.8968 GB, free: 64.83 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat