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.SMEE_Generator_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.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.64/1.64, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003445, allocations: 8 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07782/0.07819, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3967/0.475, allocations: 107 MB / 379.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.4753, allocations: 87.27 kB / 379.2 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8516/1.327, allocations: 181.2 MB / 0.5472 GB, free: 1.617 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.327, allocations: 0 / 0.5472 GB, free: 1.617 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007503/1.328, allocations: 203.8 kB / 0.5474 GB, free: 1.418 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: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.3083/1.636, allocations: 8.388 MB / 0.5556 GB, free: 16.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/1.636, allocations: 10.89 kB / 0.5556 GB, free: 16.37 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004955/1.641, allocations: 1.111 MB / 0.5567 GB, free: 16.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009899/1.651, allocations: 1.361 MB / 0.5581 GB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03405/1.685, allocations: 5.877 MB / 0.5638 GB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001629/1.687, allocations: 0.5936 MB / 0.5644 GB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005909/1.693, allocations: 0.7975 MB / 0.5652 GB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03478/1.728, allocations: 10.39 MB / 0.5753 GB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003795/1.728, allocations: 8.062 kB / 0.5753 GB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002425/1.731, allocations: 350.2 kB / 0.5756 GB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003822/1.731, allocations: 339.7 kB / 0.576 GB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02696/1.758, allocations: 8.05 MB / 0.5838 GB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08845/1.846, allocations: 33.08 MB / 0.6161 GB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01452/1.861, allocations: 6.084 MB / 0.6221 GB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005377/1.862, allocations: 40.89 kB / 0.6221 GB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.487e-05/1.862, allocations: 69.12 kB / 0.6222 GB, free: 15.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=295): time 9.689e-06/1.862, allocations: 0 / 0.6222 GB, free: 15.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=349): time 0.1068/1.969, allocations: 15.7 MB / 0.6375 GB, free: 8.453 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/1.969, allocations: 93.08 kB / 0.6376 GB, free: 8.383 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01562/1.984, allocations: 3.79 MB / 0.6413 GB, free: 6.973 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009006/1.985, allocations: 87.23 kB / 0.6414 GB, free: 6.895 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00499/1.99, allocations: 3.372 MB / 0.6447 GB, free: 4.219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002585/1.993, allocations: 1.179 MB / 0.6458 GB, free: 3.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006893/1.994, allocations: 85.53 kB / 0.6459 GB, free: 3.234 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005458/1.994, allocations: 480.9 kB / 0.6464 GB, free: 2.844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008464/2.003, allocations: 1.893 MB / 0.6482 GB, free: 2.109 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01153/2.014, allocations: 3.107 MB / 0.6512 GB, free: 15.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009142/2.024, allocations: 2.439 MB / 0.6536 GB, free: 14.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.817e-05/2.024, allocations: 9.625 kB / 0.6536 GB, free: 14.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=537) (initialization): time 0.02037/2.044, allocations: 6.142 MB / 0.6596 GB, free: 10.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.993e-05/2.044, allocations: 23.95 kB / 0.6597 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/2.044, allocations: 42.41 kB / 0.6597 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00405/2.048, allocations: 0.906 MB / 0.6606 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007297/2.056, allocations: 0.952 MB / 0.6615 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02395/2.08, allocations: 12.41 MB / 0.6736 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006002/2.086, allocations: 223.9 kB / 0.6738 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0011/2.087, allocations: 175.6 kB / 0.674 GB, free: 12.92 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * 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 (469): * Single equations (assignments): 461 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(4,93.8%) 17,(1,100.0%) 5,(4,93.8%) 17,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008128/2.095, allocations: 2.474 MB / 0.6764 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00174/2.097, allocations: 481.8 kB / 0.6769 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01862/2.115, allocations: 5.55 MB / 0.6823 GB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.977e-05/2.116, allocations: 32 kB / 0.6823 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.677e-05/2.116, allocations: 19.28 kB / 0.6824 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-05/2.116, allocations: 15.66 kB / 0.6824 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3829/2.499, allocations: 14.07 MB / 0.6961 GB, free: 58.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.091e-05/2.499, allocations: 8.562 kB / 0.6961 GB, free: 58.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004797/2.504, allocations: 0.5631 MB / 0.6967 GB, free: 58.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004358/2.508, allocations: 1.04 MB / 0.6977 GB, free: 57.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006313/2.509, allocations: 88.53 kB / 0.6978 GB, free: 57.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02701/2.536, allocations: 16.02 MB / 0.7134 GB, free: 51.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/2.536, allocations: 19.08 kB / 0.7134 GB, free: 51.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02195/2.558, allocations: 9.273 MB / 0.7225 GB, free: 49.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0037/2.561, allocations: 0.9556 MB / 0.7234 GB, free: 48.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001769/2.563, allocations: 84.39 kB / 0.7235 GB, free: 48.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00518/2.568, allocations: 203.2 kB / 0.7237 GB, free: 48.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001328/2.57, allocations: 287.2 kB / 0.724 GB, free: 48.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003838/2.57, allocations: 97.98 kB / 0.7241 GB, free: 48.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007989/2.578, allocations: 2.897 MB / 0.7269 GB, free: 48.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.72e-07/2.578, allocations: 3.594 kB / 0.7269 GB, free: 48.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008623/2.587, allocations: 1.453 MB / 0.7283 GB, free: 48.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (259): * Single equations (assignments): 252 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(4,93.8%) 33,(4,93.8%) 17,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0239/2.611, allocations: 11.86 MB / 0.7399 GB, free: 44.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01536/2.626, allocations: 5.759 MB / 0.7455 GB, free: 43.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/2.626, allocations: 4.656 kB / 0.7455 GB, free: 43.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01018/2.636, allocations: 3.726 MB / 0.7492 GB, free: 42.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008589/2.645, allocations: 1.06 MB / 0.7502 GB, free: 42.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1331/2.778, allocations: 71.68 MB / 0.8202 GB, free: 7.613 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01152/2.79, allocations: 4.995 MB / 0.8251 GB, free: 4.492 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008901/2.799, allocations: 3.133 MB / 0.8281 GB, free: 1.574 MB / 410.7 MB Notification: Performance of SimCode: time 1.593e-06/2.799, allocations: 0 / 0.8281 GB, free: 1.574 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.246/9.045, allocations: 347.8 MB / 1.168 GB, free: 83 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat