Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.0009396/0.0009395, allocations: 89.67 kB / 16.31 MB, free: 6.461 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.0009623/0.0009622, allocations: 181.9 kB / 17.21 MB, free: 6.328 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.455/1.455, allocations: 205.4 MB / 223.4 MB, free: 5.773 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.000484/0.0004842, allocations: 16 kB / 280.1 MB, free: 13.05 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2216, allocations: 47.59 MB / 327.7 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02063/0.2423, allocations: 21.22 MB / 349 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.2549, allocations: 6.699 MB / 355.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003587/0.2586, allocations: 119.6 kB / 355.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003868/0.2624, allocations: 1.169 MB / 356.9 MB, free: 6.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007481/0.2699, allocations: 1.891 MB / 358.8 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004045/0.274, allocations: 0.9708 MB / 359.8 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009901/0.2839, allocations: 7.192 MB / 367 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006241/0.2902, allocations: 3.674 MB / 370.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00383/0.294, allocations: 2.28 MB / 373 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004056/0.2981, allocations: 3.027 MB / 376 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000757/0.2989, allocations: 364 kB / 376.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.3007, allocations: 0.7182 MB / 377.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001377/0.302, allocations: 1.503 MB / 378.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.3036, allocations: 1.276 MB / 379.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008839/0.3125, allocations: 9.252 MB / 389.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3125, allocations: 0 / 389.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3125, allocations: 0 / 389.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002351/0.3128, allocations: 0 / 389.1 MB, free: 5.949 MB / 318.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.01481/0.3276, allocations: 6.309 MB / 395.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.3277, allocations: 12.03 kB / 395.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00664/0.3343, allocations: 1.226 MB / 396.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009054/0.3434, allocations: 3.585 MB / 400.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004545/0.3439, allocations: 447.4 kB / 400.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/0.3459, allocations: 0.5584 MB / 401.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01677/0.3627, allocations: 7.264 MB / 408.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001387/0.3629, allocations: 15.94 kB / 408.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005874/0.3635, allocations: 232 kB / 408.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000299/0.3638, allocations: 259.3 kB / 409 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.3769, allocations: 6.131 MB / 415.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04422/0.4211, allocations: 23.93 MB / 439 MB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009191/0.4304, allocations: 8.748 MB / 447.8 MB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004442/0.4348, allocations: 2.41 MB / 450.2 MB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.201/0.6359, allocations: 7.04 MB / 457.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.115e-05/0.636, allocations: 58.94 kB / 457.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 6.462e-06/0.6361, allocations: 0.875 kB / 457.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03132/0.6674, allocations: 14.55 MB / 471.8 MB, free: 100.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.6675, allocations: 80.44 kB / 471.9 MB, free: 100.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004045/0.6715, allocations: 3.459 MB / 475.4 MB, free: 98.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002118/0.6717, allocations: 74.23 kB / 475.4 MB, free: 98.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.6731, allocations: 2.676 MB / 478.1 MB, free: 96.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006308/0.6737, allocations: 0.9636 MB / 479.1 MB, free: 95.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.6739, allocations: 72.89 kB / 479.2 MB, free: 95.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.6741, allocations: 452.7 kB / 479.6 MB, free: 95.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.6762, allocations: 1.579 MB / 481.2 MB, free: 94.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002455/0.6787, allocations: 2.795 MB / 484 MB, free: 91.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002473/0.6812, allocations: 2.037 MB / 486 MB, free: 89.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/0.6812, allocations: 12 kB / 486 MB, free: 89.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007457/0.6887, allocations: 5.558 MB / 491.6 MB, free: 83.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.6887, allocations: 20 kB / 491.6 MB, free: 83.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.212e-05/0.6888, allocations: 40 kB / 491.6 MB, free: 83.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.6901, allocations: 0.6848 MB / 492.3 MB, free: 82.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002748/0.6929, allocations: 0.89 MB / 493.2 MB, free: 81.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007128/0.7, allocations: 9.6 MB / 0.491 GB, free: 71.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/0.7032, allocations: 240.3 kB / 0.4913 GB, free: 71.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003115/0.7035, allocations: 164 kB / 0.4914 GB, free: 71.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (429): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002701/0.7062, allocations: 1.624 MB / 0.493 GB, free: 69.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007573/0.707, allocations: 391.2 kB / 0.4934 GB, free: 69.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006296/0.7133, allocations: 4.597 MB / 0.4979 GB, free: 64.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.866e-05/0.7134, allocations: 32 kB / 0.4979 GB, free: 64.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/0.7134, allocations: 14.3 kB / 0.4979 GB, free: 64.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.269e-05/0.7134, allocations: 15.94 kB / 0.4979 GB, free: 64.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/0.7307, allocations: 10.07 MB / 0.5078 GB, free: 54.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.101e-05/0.7308, allocations: 4 kB / 0.5078 GB, free: 54.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/0.7341, allocations: 0.5195 MB / 0.5083 GB, free: 53.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002762/0.7369, allocations: 0.7464 MB / 0.509 GB, free: 53.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004249/0.7374, allocations: 72.52 kB / 0.5091 GB, free: 52.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01512/0.7525, allocations: 13.03 MB / 0.5218 GB, free: 39.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.7526, allocations: 7.938 kB / 0.5218 GB, free: 39.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01468/0.7673, allocations: 6.741 MB / 0.5284 GB, free: 32.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002564/0.7699, allocations: 0.7891 MB / 0.5292 GB, free: 31.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001287/0.7712, allocations: 60 kB / 0.5292 GB, free: 31.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003293/0.7745, allocations: 196.8 kB / 0.5294 GB, free: 31.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005639/0.7751, allocations: 205.8 kB / 0.5296 GB, free: 30.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00029/0.7754, allocations: 79.97 kB / 0.5297 GB, free: 30.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00591/0.7813, allocations: 2.329 MB / 0.5319 GB, free: 28.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7813, allocations: 0 / 0.5319 GB, free: 28.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006432/0.7878, allocations: 1.104 MB / 0.533 GB, free: 27.43 MB / 382.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 (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,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008333/0.7886, allocations: 245.4 kB / 0.5333 GB, free: 27.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01069/0.7993, allocations: 4.759 MB / 0.5379 GB, free: 22.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/0.7994, allocations: 0 / 0.5379 GB, free: 22.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006296/0.8057, allocations: 2.891 MB / 0.5407 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007878/0.8136, allocations: 0.8867 MB / 0.5416 GB, free: 18.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02473/0.8384, allocations: 12.53 MB / 0.5538 GB, free: 5.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004909/0.8433, allocations: 3.507 MB / 0.5573 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004269/0.8476, allocations: 0.8522 MB / 0.5581 GB, free: 1.422 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/0.8485, allocations: 255.4 kB / 0.5583 GB, free: 1.172 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.8485, allocations: 0 / 0.5583 GB, free: 1.172 MB / 382.1 MB Notification: Performance of Templates: time 0.2792/1.128, allocations: 50.53 MB / 0.6077 GB, free: 139.9 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)