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.0009799/0.0009802, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001078/0.001078, allocations: 168.7 kB / 15.95 MB, free: 204 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.343/1.343, allocations: 205.4 MB / 222.1 MB, free: 5.609 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.0004347/0.0004349, allocations: 12 kB / 278.9 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2313, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.03742/0.2687, allocations: 36.11 MB / 362.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02286/0.2916, allocations: 10.31 MB / 372.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007053/0.2987, allocations: 239.2 kB / 373.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0064/0.3051, allocations: 1.744 MB / 374.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01434/0.3195, allocations: 2.988 MB / 377.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007565/0.3271, allocations: 1.454 MB / 379.4 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02535/0.3525, allocations: 13.56 MB / 392.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04528/0.3978, allocations: 18.28 MB / 411.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009887/0.4077, allocations: 4.601 MB / 415.8 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009809/0.4176, allocations: 5.397 MB / 421.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003794/0.4214, allocations: 0.7227 MB / 421.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005417/0.4268, allocations: 1.097 MB / 423 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003963/0.4308, allocations: 2.32 MB / 425.3 MB, free: 296 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00492/0.4358, allocations: 2.406 MB / 427.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02444/0.4602, allocations: 20.21 MB / 448 MB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.4603, allocations: 0 / 448 MB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4603, allocations: 3.938 kB / 448 MB, free: 9.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007239/0.461, allocations: 0 / 448 MB, free: 9.598 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.3507/0.8117, allocations: 12.16 MB / 460.1 MB, free: 93.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.8118, allocations: 8.625 kB / 460.1 MB, free: 93.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03293/0.8448, allocations: 6.177 MB / 466.3 MB, free: 91.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.8585, allocations: 6.88 MB / 473.2 MB, free: 87.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008238/0.8594, allocations: 0.8506 MB / 474 MB, free: 86.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003961/0.8634, allocations: 1.118 MB / 475.2 MB, free: 86.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04242/0.9058, allocations: 17.12 MB / 492.3 MB, free: 71.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005712/0.9064, allocations: 11.91 kB / 492.3 MB, free: 71.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00331/0.9098, allocations: 468.5 kB / 492.7 MB, free: 70.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005997/0.9104, allocations: 0.6118 MB / 493.4 MB, free: 70.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03081/0.9412, allocations: 15.53 MB / 0.497 GB, free: 54.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08607/1.027, allocations: 58.76 MB / 0.5543 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02041/1.048, allocations: 20.9 MB / 0.5747 GB, free: 2.789 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00668/1.055, allocations: 3.402 MB / 0.5781 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01897/1.074, allocations: 9.699 MB / 0.5875 GB, free: 5.625 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.354e-05/1.074, allocations: 73.56 kB / 0.5876 GB, free: 5.547 MB / 430.1 MB Notification: Performance of pre-optimization done (n=319): time 4.548e-06/1.074, allocations: 0 / 0.5876 GB, free: 5.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=346): time 0.03882/1.112, allocations: 17.79 MB / 0.605 GB, free: 3.539 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/1.113, allocations: 112.4 kB / 0.6051 GB, free: 3.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009345/1.122, allocations: 5.381 MB / 0.6103 GB, free: 14.05 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006102/1.123, allocations: 81.7 kB / 0.6104 GB, free: 13.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0039/1.126, allocations: 5.338 MB / 0.6156 GB, free: 8.598 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001404/1.128, allocations: 1.216 MB / 0.6168 GB, free: 7.391 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007544/1.129, allocations: 140 kB / 0.617 GB, free: 7.254 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000535/1.129, allocations: 0.5715 MB / 0.6175 GB, free: 6.676 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005003/1.134, allocations: 2.789 MB / 0.6202 GB, free: 3.883 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1899/1.324, allocations: 5.835 MB / 0.6259 GB, free: 152.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008305/1.332, allocations: 4.044 MB / 0.6299 GB, free: 152.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002172/1.333, allocations: 29.91 kB / 0.6299 GB, free: 152.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01692/1.35, allocations: 9.763 MB / 0.6394 GB, free: 148.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/1.35, allocations: 50.92 kB / 0.6395 GB, free: 148.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000184/1.35, allocations: 105.9 kB / 0.6396 GB, free: 148.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/1.352, allocations: 0.9472 MB / 0.6405 GB, free: 148.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005235/1.357, allocations: 1.594 MB / 0.6421 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009678/1.367, allocations: 9.763 MB / 0.6516 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005487/1.373, allocations: 453.6 kB / 0.652 GB, free: 141.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009848/1.374, allocations: 360.8 kB / 0.6524 GB, free: 141.1 MB / 462.1 MB 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 (821): * Single equations (assignments): 813 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006125/1.38, allocations: 3.838 MB / 0.6561 GB, free: 139.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/1.381, allocations: 0.5143 MB / 0.6566 GB, free: 139.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009306/1.39, allocations: 6.021 MB / 0.6625 GB, free: 136.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004891/1.395, allocations: 3.129 MB / 0.6656 GB, free: 135.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.475e-05/1.395, allocations: 15.66 kB / 0.6656 GB, free: 135.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.682e-05/1.395, allocations: 14.95 kB / 0.6656 GB, free: 135.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02487/1.42, allocations: 14.88 MB / 0.6801 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/1.42, allocations: 7.984 kB / 0.6801 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002246/1.422, allocations: 0.6087 MB / 0.6807 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/1.424, allocations: 0.9052 MB / 0.6816 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000207/1.425, allocations: 79.97 kB / 0.6817 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/1.435, allocations: 12.89 MB / 0.6943 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.435, allocations: 8 kB / 0.6943 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01095/1.446, allocations: 8.704 MB / 0.7028 GB, free: 97.69 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002446/1.449, allocations: 1.035 MB / 0.7038 GB, free: 96.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/1.45, allocations: 67.98 kB / 0.7039 GB, free: 96.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002487/1.452, allocations: 227.7 kB / 0.7041 GB, free: 96.34 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/1.453, allocations: 253.4 kB / 0.7043 GB, free: 96.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/1.453, allocations: 99.98 kB / 0.7044 GB, free: 96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006776/1.46, allocations: 3.544 MB / 0.7079 GB, free: 92.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.02e-07/1.46, allocations: 0 / 0.7079 GB, free: 92.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01051/1.471, allocations: 1.833 MB / 0.7097 GB, free: 90.65 MB / 462.1 MB 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 (301): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001194/1.472, allocations: 276.6 kB / 0.7099 GB, free: 90.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01514/1.487, allocations: 7.189 MB / 0.717 GB, free: 83.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/1.487, allocations: 5.766 kB / 0.717 GB, free: 83.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007597/1.495, allocations: 3.468 MB / 0.7203 GB, free: 79.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008989/1.504, allocations: 1.142 MB / 0.7215 GB, free: 78.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03921/1.543, allocations: 22.25 MB / 0.7432 GB, free: 56.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00811/1.551, allocations: 6.665 MB / 0.7497 GB, free: 49.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006382/1.557, allocations: 1.933 MB / 0.7516 GB, free: 47.51 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/1.559, allocations: 383.4 kB / 0.752 GB, free: 47.13 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/1.559, allocations: 0 / 0.752 GB, free: 47.13 MB / 462.1 MB Notification: Performance of Templates: time 0.3057/1.865, allocations: 69.89 MB / 0.8202 GB, free: 128.3 MB / 462.1 MB 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)