Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0059/0.0059, allocations: 102 kB / 15.73 MB, free: 6.051 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.001708/0.001708, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.321/1.321, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.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.001153/0.001153, allocations: 47.92 kB / 326.6 MB, free: 3.238 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09623/0.09739, allocations: 46.62 MB / 373.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2085/0.3059, allocations: 41.26 MB / 414.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02397/0.3299, allocations: 11.08 MB / 425.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01087/0.3408, allocations: 255 kB / 425.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02/0.3609, allocations: 7.959 MB / 433.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01336/0.3743, allocations: 3.724 MB / 437.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007426/0.3817, allocations: 2.321 MB / 439.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01704/0.3988, allocations: 12.64 MB / 452.4 MB, free: 172 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03994/0.4388, allocations: 23.56 MB / 476 MB, free: 8.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0101/0.4489, allocations: 6.463 MB / 482.5 MB, free: 1.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01114/0.4601, allocations: 7.272 MB / 489.7 MB, free: 10.67 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004717/0.4648, allocations: 1.844 MB / 491.6 MB, free: 8.824 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006535/0.4714, allocations: 2.253 MB / 493.8 MB, free: 6.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005713/0.4771, allocations: 3.725 MB / 497.5 MB, free: 2.836 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01481/0.4919, allocations: 7.19 MB / 0.4929 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03014/0.5221, allocations: 24.18 MB / 0.5165 GB, free: 3.371 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.5222, allocations: 11.92 kB / 0.5165 GB, free: 3.359 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5222, allocations: 0 / 0.5165 GB, free: 3.359 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006646/0.5229, allocations: 0 / 0.5165 GB, free: 3.359 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.04212/0.565, allocations: 14.43 MB / 0.5306 GB, free: 4.809 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.5651, allocations: 8.031 kB / 0.5306 GB, free: 4.801 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03641/0.6015, allocations: 6.17 MB / 0.5367 GB, free: 14.61 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01604/0.6176, allocations: 7.083 MB / 0.5436 GB, free: 7.445 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009048/0.6185, allocations: 0.8468 MB / 0.5444 GB, free: 6.598 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004003/0.6225, allocations: 1.117 MB / 0.5455 GB, free: 5.48 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4214/1.044, allocations: 17.15 MB / 0.5622 GB, free: 131.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004689/1.044, allocations: 19.64 kB / 0.5623 GB, free: 131.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003145/1.048, allocations: 465 kB / 0.5627 GB, free: 131.6 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008037/1.048, allocations: 0.6145 MB / 0.5633 GB, free: 131.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03348/1.082, allocations: 15.57 MB / 0.5785 GB, free: 125.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09122/1.173, allocations: 57.86 MB / 0.635 GB, free: 73.35 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01728/1.191, allocations: 20.89 MB / 0.6554 GB, free: 49.89 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005343/1.196, allocations: 3.303 MB / 0.6586 GB, free: 46.58 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01577/1.212, allocations: 9.532 MB / 0.668 GB, free: 37 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/1.212, allocations: 69.5 kB / 0.668 GB, free: 36.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=313): time 5.039e-06/1.212, allocations: 4 kB / 0.668 GB, free: 36.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=340): time 0.03315/1.245, allocations: 16.79 MB / 0.6844 GB, free: 19.93 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/1.245, allocations: 112.4 kB / 0.6845 GB, free: 19.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009715/1.255, allocations: 5.408 MB / 0.6898 GB, free: 14.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006388/1.255, allocations: 85.64 kB / 0.6899 GB, free: 14.32 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002725/1.258, allocations: 5.341 MB / 0.6951 GB, free: 8.953 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001087/1.259, allocations: 1.204 MB / 0.6963 GB, free: 7.758 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003055/1.262, allocations: 1.341 MB / 0.6976 GB, free: 6.406 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/1.262, allocations: 305.1 kB / 0.6979 GB, free: 6.105 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/1.267, allocations: 2.754 MB / 0.7006 GB, free: 3.348 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006856/1.274, allocations: 5.795 MB / 0.7062 GB, free: 12.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01431/1.288, allocations: 8.958 MB / 0.715 GB, free: 1.664 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/1.288, allocations: 36 kB / 0.715 GB, free: 1.629 MB / 494.1 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.02009/1.308, allocations: 9.675 MB / 0.7245 GB, free: 7.871 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.00013/1.309, allocations: 48 kB / 0.7245 GB, free: 7.824 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001655/1.309, allocations: 104 kB / 0.7246 GB, free: 7.723 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0026/1.311, allocations: 0.9322 MB / 0.7255 GB, free: 6.777 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006096/1.318, allocations: 1.579 MB / 0.7271 GB, free: 5.195 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/1.332, allocations: 10.52 MB / 0.7373 GB, free: 10.27 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006493/1.338, allocations: 435.1 kB / 0.7378 GB, free: 9.844 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001404/1.339, allocations: 364 kB / 0.7381 GB, free: 9.488 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * 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 (818): * Single equations (assignments): 813 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(8,26,67.2%), (2,8,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008096/1.348, allocations: 3.829 MB / 0.7418 GB, free: 5.645 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/1.349, allocations: 0.5132 MB / 0.7423 GB, free: 5.125 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2348/1.584, allocations: 5.887 MB / 0.7481 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005527/1.59, allocations: 3.047 MB / 0.7511 GB, free: 162.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.814e-05/1.59, allocations: 14.62 kB / 0.7511 GB, free: 162.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.897e-05/1.59, allocations: 18.62 kB / 0.7511 GB, free: 162.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0283/1.618, allocations: 14.68 MB / 0.7654 GB, free: 157 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/1.618, allocations: 4.938 kB / 0.7654 GB, free: 157 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002801/1.621, allocations: 0.5973 MB / 0.766 GB, free: 157 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00248/1.623, allocations: 0.894 MB / 0.7669 GB, free: 156.8 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000388/1.624, allocations: 81.59 kB / 0.767 GB, free: 156.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01407/1.638, allocations: 14.01 MB / 0.7807 GB, free: 146.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/1.638, allocations: 17.88 kB / 0.7807 GB, free: 146 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01295/1.651, allocations: 8.508 MB / 0.789 GB, free: 142.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/1.653, allocations: 1 MB / 0.79 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008615/1.654, allocations: 67.84 kB / 0.79 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002582/1.657, allocations: 195.3 kB / 0.7902 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006566/1.657, allocations: 255.8 kB / 0.7904 GB, free: 141.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000239/1.658, allocations: 106.3 kB / 0.7906 GB, free: 141.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005341/1.663, allocations: 3.578 MB / 0.794 GB, free: 140.5 MB / 0.5138 GB Notification: Performance of sort global known variables: time 6.12e-07/1.663, allocations: 0 / 0.794 GB, free: 140.5 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007902/1.671, allocations: 1.827 MB / 0.7958 GB, free: 140.3 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (298): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,8,100.0%), (1,4,100.0%), (1,8,100.0%), (3,4,77.8%), (8,26,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008572/1.672, allocations: 261.1 kB / 0.7961 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01183/1.684, allocations: 7.108 MB / 0.803 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/1.684, allocations: 0 / 0.803 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006356/1.69, allocations: 3.401 MB / 0.8063 GB, free: 135.6 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008383/1.698, allocations: 1.175 MB / 0.8075 GB, free: 135.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0356/1.734, allocations: 18.28 MB / 0.8253 GB, free: 118.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01056/1.745, allocations: 6.668 MB / 0.8318 GB, free: 113.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006408/1.751, allocations: 1.941 MB / 0.8337 GB, free: 111.1 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001668/1.753, allocations: 383.4 kB / 0.8341 GB, free: 110.7 MB / 0.5138 GB Notification: Performance of SimCode: time 9.32e-07/1.753, allocations: 0 / 0.8341 GB, free: 110.7 MB / 0.5138 GB Notification: Performance of Templates: time 0.111/1.864, allocations: 69.78 MB / 0.9023 GB, free: 40.98 MB / 0.5138 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1)