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.001756/0.001756, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00211/0.00211, allocations: 196.8 kB / 16.14 MB, free: 6.715 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.532/1.532, allocations: 205.1 MB / 222 MB, free: 4.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.002089/0.002089, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2263, allocations: 46.62 MB / 324.7 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02471/0.251, allocations: 23.71 MB / 348.4 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01488/0.2659, allocations: 7.047 MB / 355.4 MB, free: 5.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004748/0.2708, allocations: 123.5 kB / 355.6 MB, free: 5.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005427/0.2762, allocations: 1.341 MB / 356.9 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008093/0.2843, allocations: 2.063 MB / 359 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004402/0.2888, allocations: 1.334 MB / 360.3 MB, free: 424 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01278/0.3016, allocations: 7.765 MB / 368.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009068/0.3107, allocations: 4.554 MB / 372.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004839/0.3155, allocations: 2.65 MB / 375.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006035/0.3216, allocations: 3.587 MB / 378.9 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002244/0.3239, allocations: 0.5117 MB / 379.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004543/0.3284, allocations: 0.9641 MB / 380.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003233/0.3317, allocations: 1.744 MB / 382.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006845/0.3386, allocations: 3.382 MB / 385.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01216/0.3507, allocations: 11.09 MB / 396.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3508, allocations: 0 / 396.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3508, allocations: 0 / 396.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004123/0.3512, allocations: 0 / 396.6 MB, free: 11.96 MB / 334.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.02289/0.3741, allocations: 7.404 MB / 404 MB, free: 4.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3742, allocations: 8.031 kB / 404 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0078/0.382, allocations: 1.223 MB / 405.2 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008502/0.3905, allocations: 3.678 MB / 408.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000482/0.391, allocations: 436 kB / 409.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001974/0.393, allocations: 0.57 MB / 409.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01899/0.412, allocations: 7.284 MB / 417.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001887/0.4123, allocations: 11.84 kB / 417.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009365/0.4132, allocations: 236 kB / 417.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002785/0.4135, allocations: 263.3 kB / 417.6 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.4273, allocations: 6.131 MB / 423.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04891/0.4762, allocations: 23.79 MB / 447.6 MB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1822/0.6585, allocations: 8.745 MB / 456.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004889/0.6634, allocations: 2.387 MB / 458.7 MB, free: 103 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01213/0.6756, allocations: 7.026 MB / 465.7 MB, free: 99.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/0.6756, allocations: 64.59 kB / 465.8 MB, free: 99.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 5.751e-06/0.6757, allocations: 0.6562 kB / 465.8 MB, free: 99.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03114/0.7068, allocations: 13.91 MB / 479.7 MB, free: 93.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.7069, allocations: 82.55 kB / 479.8 MB, free: 93.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005827/0.7127, allocations: 3.486 MB / 483.3 MB, free: 90.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009827/0.7138, allocations: 73.7 kB / 483.3 MB, free: 90.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002223/0.716, allocations: 2.681 MB / 486 MB, free: 87.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001366/0.7174, allocations: 0.9648 MB / 487 MB, free: 86.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/0.7184, allocations: 0.6409 MB / 487.6 MB, free: 86.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.7185, allocations: 301.1 kB / 487.9 MB, free: 85.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002395/0.7209, allocations: 1.561 MB / 489.5 MB, free: 84.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/0.7235, allocations: 2.777 MB / 492.3 MB, free: 80.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00484/0.7283, allocations: 4.629 MB / 496.9 MB, free: 75.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.333e-05/0.7284, allocations: 8 kB / 496.9 MB, free: 75.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008324/0.7367, allocations: 5.52 MB / 0.4906 GB, free: 70.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.7368, allocations: 28.61 kB / 0.4907 GB, free: 70.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-05/0.7369, allocations: 36 kB / 0.4907 GB, free: 70.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.7384, allocations: 0.6844 MB / 0.4914 GB, free: 69.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003043/0.7415, allocations: 0.8658 MB / 0.4922 GB, free: 68.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007437/0.7489, allocations: 9.605 MB / 0.5016 GB, free: 58.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004587/0.7535, allocations: 219.6 kB / 0.5018 GB, free: 58.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006237/0.7542, allocations: 168 kB / 0.502 GB, free: 57.99 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 (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.00289/0.7571, allocations: 1.617 MB / 0.5035 GB, free: 56.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009992/0.7581, allocations: 391.2 kB / 0.5039 GB, free: 55.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006812/0.7649, allocations: 4.553 MB / 0.5084 GB, free: 51.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-05/0.765, allocations: 35.98 kB / 0.5084 GB, free: 51.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/0.765, allocations: 8 kB / 0.5084 GB, free: 51.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.298e-05/0.765, allocations: 11.95 kB / 0.5084 GB, free: 51.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.7797, allocations: 10.03 MB / 0.5182 GB, free: 41.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.7798, allocations: 4 kB / 0.5182 GB, free: 41.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/0.7818, allocations: 0.5077 MB / 0.5187 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00176/0.7836, allocations: 0.7545 MB / 0.5194 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001956/0.7838, allocations: 71.97 kB / 0.5195 GB, free: 39.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009365/0.7932, allocations: 13.04 MB / 0.5322 GB, free: 25.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.7932, allocations: 11.94 kB / 0.5323 GB, free: 25.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009156/0.8024, allocations: 6.671 MB / 0.5388 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001868/0.8043, allocations: 0.7813 MB / 0.5395 GB, free: 18.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000642/0.8049, allocations: 67.92 kB / 0.5396 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002028/0.807, allocations: 171.8 kB / 0.5398 GB, free: 17.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004554/0.8074, allocations: 209.8 kB / 0.54 GB, free: 17.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/0.8076, allocations: 79.98 kB / 0.54 GB, free: 17.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002932/0.8105, allocations: 2.357 MB / 0.5423 GB, free: 15.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8106, allocations: 0 / 0.5423 GB, free: 15.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003808/0.8144, allocations: 1.115 MB / 0.5434 GB, free: 14.12 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 (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.0006327/0.815, allocations: 286.8 kB / 0.5437 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006462/0.8215, allocations: 4.706 MB / 0.5483 GB, free: 9.027 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/0.8215, allocations: 0 / 0.5483 GB, free: 9.027 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003979/0.8255, allocations: 2.867 MB / 0.5511 GB, free: 6.086 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00514/0.8307, allocations: 0.8484 MB / 0.5519 GB, free: 5.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/0.8511, allocations: 12.97 MB / 0.5646 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003975/0.8551, allocations: 3.503 MB / 0.568 GB, free: 4.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003439/0.8586, allocations: 0.856 MB / 0.5689 GB, free: 3.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008504/0.8594, allocations: 259.3 kB / 0.5691 GB, free: 3.516 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.8595, allocations: 3.938 kB / 0.5691 GB, free: 3.512 MB / 398.1 MB Notification: Performance of Templates: time 0.2463/1.106, allocations: 52.56 MB / 0.6204 GB, free: 121.6 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)