Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001376/0.001376, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001661/0.001661, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.4 MB / 222.1 MB, free: 5.453 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.0006952/0.0006954, allocations: 12 kB / 278.9 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2505, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02189/0.2724, allocations: 21.23 MB / 347.7 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0138/0.2862, allocations: 6.684 MB / 354.4 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004042/0.2903, allocations: 123.5 kB / 354.5 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004548/0.2949, allocations: 1.169 MB / 355.7 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007184/0.3021, allocations: 1.888 MB / 357.6 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004072/0.3062, allocations: 0.9747 MB / 358.6 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.3168, allocations: 7.192 MB / 365.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008428/0.3253, allocations: 3.682 MB / 369.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005222/0.3305, allocations: 2.276 MB / 371.7 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00551/0.3361, allocations: 3.035 MB / 374.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001666/0.3378, allocations: 364 kB / 375.1 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003222/0.341, allocations: 0.7182 MB / 375.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002531/0.3436, allocations: 1.495 MB / 377.3 MB, free: 452 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00261/0.3462, allocations: 1.276 MB / 378.6 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.357, allocations: 9.26 MB / 387.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.3571, allocations: 0 / 387.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3571, allocations: 4 kB / 387.8 MB, free: 5.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004023/0.3575, allocations: 0 / 387.8 MB, free: 5.867 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.01687/0.3744, allocations: 6.301 MB / 394.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.3744, allocations: 11.97 kB / 394.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00693/0.3814, allocations: 1.222 MB / 395.4 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009613/0.391, allocations: 3.589 MB / 399 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005153/0.3916, allocations: 443.4 kB / 399.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001693/0.3933, allocations: 0.5545 MB / 400 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01834/0.4116, allocations: 7.268 MB / 407.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002176/0.4119, allocations: 12 kB / 407.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001046/0.4129, allocations: 228 kB / 407.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002818/0.4132, allocations: 263.3 kB / 407.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/0.4258, allocations: 6.131 MB / 413.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04076/0.4666, allocations: 23.93 MB / 437.8 MB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00881/0.4755, allocations: 8.74 MB / 446.5 MB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003912/0.4794, allocations: 2.41 MB / 448.9 MB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1743/0.6538, allocations: 7.045 MB / 456 MB, free: 104.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.372e-05/0.6539, allocations: 59.58 kB / 456 MB, free: 104 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 7.674e-06/0.6539, allocations: 0 / 456 MB, free: 104 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03271/0.6866, allocations: 14.55 MB / 470.6 MB, free: 100 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.6867, allocations: 80.47 kB / 470.7 MB, free: 99.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005021/0.6918, allocations: 3.464 MB / 474.1 MB, free: 98.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003282/0.6921, allocations: 74.8 kB / 474.2 MB, free: 98.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001628/0.6937, allocations: 2.676 MB / 476.9 MB, free: 96.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007412/0.6945, allocations: 0.9692 MB / 477.8 MB, free: 95.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.6948, allocations: 67.72 kB / 477.9 MB, free: 95.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.695, allocations: 452.9 kB / 478.3 MB, free: 95.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00247/0.6974, allocations: 1.584 MB / 479.9 MB, free: 94.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002677/0.7001, allocations: 2.782 MB / 482.7 MB, free: 91.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.703, allocations: 2.039 MB / 484.8 MB, free: 89.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.33e-05/0.7031, allocations: 8 kB / 484.8 MB, free: 89.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008115/0.7112, allocations: 5.566 MB / 490.3 MB, free: 83.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.571e-05/0.7113, allocations: 23.84 kB / 490.4 MB, free: 83.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-05/0.7113, allocations: 40 kB / 490.4 MB, free: 83.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.713, allocations: 0.6837 MB / 491.1 MB, free: 82.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/0.7158, allocations: 0.8814 MB / 492 MB, free: 81.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007391/0.7232, allocations: 9.598 MB / 0.4898 GB, free: 71.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002956/0.7261, allocations: 239.6 kB / 0.49 GB, free: 71.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003303/0.7265, allocations: 169 kB / 0.4902 GB, free: 71.28 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.00264/0.7291, allocations: 1.619 MB / 0.4918 GB, free: 69.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008309/0.73, allocations: 399.2 kB / 0.4922 GB, free: 69.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006657/0.7366, allocations: 4.594 MB / 0.4966 GB, free: 64.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.813e-05/0.7367, allocations: 36 kB / 0.4967 GB, free: 64.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.441e-05/0.7367, allocations: 8 kB / 0.4967 GB, free: 64.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-05/0.7367, allocations: 19.94 kB / 0.4967 GB, free: 64.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01468/0.7514, allocations: 10.07 MB / 0.5065 GB, free: 54.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.7515, allocations: 11.94 kB / 0.5065 GB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/0.7534, allocations: 0.5075 MB / 0.507 GB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001634/0.7551, allocations: 0.7541 MB / 0.5078 GB, free: 52.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002107/0.7553, allocations: 68.67 kB / 0.5078 GB, free: 52.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009339/0.7647, allocations: 13.03 MB / 0.5206 GB, free: 39.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.7647, allocations: 8 kB / 0.5206 GB, free: 39.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008793/0.7735, allocations: 6.745 MB / 0.5272 GB, free: 32.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/0.7752, allocations: 0.7852 MB / 0.5279 GB, free: 31.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008383/0.776, allocations: 60 kB / 0.528 GB, free: 31.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002115/0.7782, allocations: 195.8 kB / 0.5282 GB, free: 30.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/0.7786, allocations: 207.8 kB / 0.5284 GB, free: 30.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/0.7787, allocations: 87.97 kB / 0.5285 GB, free: 30.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003533/0.7823, allocations: 2.326 MB / 0.5307 GB, free: 28.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7823, allocations: 4 kB / 0.5307 GB, free: 28.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003755/0.7861, allocations: 1.108 MB / 0.5318 GB, free: 27.27 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.0005167/0.7866, allocations: 237.4 kB / 0.532 GB, free: 27.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0064/0.793, allocations: 4.765 MB / 0.5367 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.793, allocations: 4 kB / 0.5367 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003736/0.7968, allocations: 2.881 MB / 0.5395 GB, free: 19.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004699/0.8015, allocations: 0.8866 MB / 0.5404 GB, free: 18.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01758/0.8191, allocations: 12.53 MB / 0.5526 GB, free: 5.676 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003836/0.823, allocations: 3.503 MB / 0.556 GB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003416/0.8264, allocations: 0.8522 MB / 0.5569 GB, free: 1.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009595/0.8274, allocations: 259.4 kB / 0.5571 GB, free: 1.027 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.8274, allocations: 0 / 0.5571 GB, free: 1.027 MB / 382.1 MB Notification: Performance of Templates: time 0.2443/1.072, allocations: 50.53 MB / 0.6064 GB, free: 140.4 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)