Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009244/0.009244, allocations: 100.9 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001831/0.001832, allocations: 195.6 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 54.67 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1184, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02578/0.1442, allocations: 24.05 MB / 397.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01705/0.1613, allocations: 7.109 MB / 404.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007392/0.1688, allocations: 127.5 kB / 404.5 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006868/0.1758, allocations: 1.603 MB / 406.1 MB, free: 288 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01164/0.1874, allocations: 2.365 MB / 408.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006066/0.1935, allocations: 1.478 MB / 409.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01348/0.207, allocations: 7.2 MB / 417.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01065/0.2177, allocations: 5.478 MB / 422.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007077/0.2249, allocations: 3.193 MB / 425.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008073/0.233, allocations: 3.826 MB / 429.6 MB, free: 8.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003801/0.2368, allocations: 0.875 MB / 430.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005302/0.2421, allocations: 1.304 MB / 431.8 MB, free: 6.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004088/0.2463, allocations: 2.131 MB / 433.9 MB, free: 4.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008057/0.2544, allocations: 3.777 MB / 437.7 MB, free: 484 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01858/0.273, allocations: 11.46 MB / 449.2 MB, free: 4.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.273, allocations: 0 / 449.2 MB, free: 4.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2731, allocations: 0 / 449.2 MB, free: 4.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005078/0.2736, allocations: 0 / 449.2 MB, free: 4.98 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.2483/0.5219, allocations: 7.421 MB / 456.6 MB, free: 63.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.5219, allocations: 9 kB / 456.6 MB, free: 63.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00703/0.529, allocations: 1.216 MB / 457.8 MB, free: 62.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0094/0.5384, allocations: 3.916 MB / 461.7 MB, free: 60.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003656/0.5388, allocations: 430.3 kB / 462.1 MB, free: 60.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001454/0.5402, allocations: 0.5575 MB / 462.7 MB, free: 60.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01362/0.5539, allocations: 7.279 MB / 470 MB, free: 57.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001235/0.554, allocations: 8.625 kB / 470 MB, free: 57.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005069/0.5545, allocations: 239.7 kB / 470.2 MB, free: 57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002343/0.5548, allocations: 262.8 kB / 470.5 MB, free: 56.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009797/0.5646, allocations: 6.103 MB / 476.6 MB, free: 53.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03412/0.5987, allocations: 23.4 MB / 500 MB, free: 32.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006472/0.6052, allocations: 8.727 MB / 0.4968 GB, free: 22.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003194/0.6085, allocations: 2.359 MB / 0.4991 GB, free: 20.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01134/0.6198, allocations: 6.924 MB / 0.5059 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.6199, allocations: 64.56 kB / 0.5059 GB, free: 12.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 6.151e-06/0.6199, allocations: 2.438 kB / 0.5059 GB, free: 12.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03277/0.6527, allocations: 13.72 MB / 0.5193 GB, free: 15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.6528, allocations: 85.53 kB / 0.5194 GB, free: 14.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006903/0.6597, allocations: 3.42 MB / 0.5227 GB, free: 11.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005219/0.6603, allocations: 73.7 kB / 0.5228 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002195/0.6625, allocations: 2.685 MB / 0.5254 GB, free: 8.711 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001198/0.6637, allocations: 0.9573 MB / 0.5264 GB, free: 7.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001399/0.6651, allocations: 0.6371 MB / 0.527 GB, free: 7.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.033e-05/0.6652, allocations: 305.1 kB / 0.5273 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002948/0.6681, allocations: 1.549 MB / 0.5288 GB, free: 5.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003699/0.6719, allocations: 2.759 MB / 0.5315 GB, free: 1.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006984/0.6789, allocations: 4.606 MB / 0.536 GB, free: 12.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-05/0.6789, allocations: 12 kB / 0.536 GB, free: 12.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01004/0.689, allocations: 5.475 MB / 0.5413 GB, free: 7.211 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.689, allocations: 20 kB / 0.5414 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-05/0.6891, allocations: 40 kB / 0.5414 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/0.6907, allocations: 0.6686 MB / 0.5421 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003513/0.6942, allocations: 0.8619 MB / 0.5429 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.7047, allocations: 10.35 MB / 0.553 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00372/0.7085, allocations: 231.5 kB / 0.5532 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004431/0.709, allocations: 164 kB / 0.5534 GB, free: 10.31 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003107/0.7121, allocations: 1.625 MB / 0.555 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008969/0.713, allocations: 391.2 kB / 0.5553 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007663/0.7206, allocations: 4.498 MB / 0.5597 GB, free: 3.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-05/0.7207, allocations: 28 kB / 0.5598 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-05/0.7207, allocations: 8 kB / 0.5598 GB, free: 3.625 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.607e-05/0.7208, allocations: 23.88 kB / 0.5598 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01873/0.7395, allocations: 9.89 MB / 0.5695 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.7396, allocations: 8 kB / 0.5695 GB, free: 9.527 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00223/0.7418, allocations: 0.4998 MB / 0.57 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/0.7437, allocations: 0.7307 MB / 0.5707 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002955/0.7441, allocations: 71.95 kB / 0.5707 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01304/0.7571, allocations: 14.13 MB / 0.5845 GB, free: 9.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.7572, allocations: 4 kB / 0.5845 GB, free: 9.246 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01164/0.7688, allocations: 6.594 MB / 0.591 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002308/0.7712, allocations: 0.7738 MB / 0.5917 GB, free: 1.605 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009242/0.7721, allocations: 56.09 kB / 0.5918 GB, free: 1.551 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/0.7743, allocations: 175.8 kB / 0.592 GB, free: 1.379 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005077/0.7748, allocations: 209.6 kB / 0.5922 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001829/0.775, allocations: 87.11 kB / 0.5922 GB, free: 1.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004068/0.7791, allocations: 2.306 MB / 0.5945 GB, free: 14.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7791, allocations: 0 / 0.5945 GB, free: 14.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005173/0.7843, allocations: 1.099 MB / 0.5956 GB, free: 13.71 MB / 478.1 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 (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001031/0.7854, allocations: 279.8 kB / 0.5958 GB, free: 13.43 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008388/0.7938, allocations: 4.693 MB / 0.6004 GB, free: 8.629 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/0.7938, allocations: 0 / 0.6004 GB, free: 8.629 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004984/0.7988, allocations: 2.822 MB / 0.6032 GB, free: 5.73 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005738/0.8046, allocations: 0.8962 MB / 0.604 GB, free: 4.836 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02172/0.8263, allocations: 10.44 MB / 0.6142 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003611/0.83, allocations: 3.499 MB / 0.6177 GB, free: 6.754 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003152/0.8331, allocations: 0.8562 MB / 0.6185 GB, free: 5.891 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000978/0.8341, allocations: 263.4 kB / 0.6187 GB, free: 5.633 MB / 494.1 MB Notification: Performance of SimCode: time 1.172e-06/0.8342, allocations: 0 / 0.6187 GB, free: 5.633 MB / 494.1 MB Notification: Performance of Templates: time 0.3367/1.171, allocations: 51.64 MB / 0.6692 GB, free: 131.3 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)