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.008099/0.008099, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001946/0.001946, allocations: 194.3 kB / 16.67 MB, free: 5.938 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.443/1.443, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001122/0.001122, allocations: 54.3 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.08339, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.04119/0.1246, allocations: 41.27 MB / 414.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02354/0.1482, allocations: 11.08 MB / 425.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006349/0.1546, allocations: 255.2 kB / 425.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0179/0.1725, allocations: 7.893 MB / 433.7 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.1848, allocations: 3.651 MB / 437.4 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0079/0.1928, allocations: 2.307 MB / 439.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01734/0.2101, allocations: 12.65 MB / 452.3 MB, free: 1.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2188/0.429, allocations: 23.52 MB / 475.8 MB, free: 4.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009866/0.4389, allocations: 6.436 MB / 482.3 MB, free: 4.039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01122/0.4502, allocations: 7.274 MB / 489.5 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004634/0.4548, allocations: 1.845 MB / 491.4 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006603/0.4615, allocations: 2.252 MB / 493.6 MB, free: 500 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009378/0.4709, allocations: 4.197 MB / 497.8 MB, free: 0 / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01447/0.4854, allocations: 7.198 MB / 0.4932 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02977/0.5151, allocations: 24.25 MB / 0.5169 GB, free: 4.789 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.5152, allocations: 0 / 0.5169 GB, free: 4.789 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5152, allocations: 0 / 0.5169 GB, free: 4.789 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000763/0.516, allocations: 0 / 0.5169 GB, free: 4.789 MB / 414.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.04391/0.5599, allocations: 14.73 MB / 0.5313 GB, free: 6.039 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.56, allocations: 8.031 kB / 0.5313 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03667/0.5967, allocations: 6.224 MB / 0.5374 GB, free: 15.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01525/0.6119, allocations: 7.105 MB / 0.5443 GB, free: 9.043 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007473/0.6127, allocations: 0.845 MB / 0.5451 GB, free: 8.207 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003744/0.6165, allocations: 1.107 MB / 0.5462 GB, free: 7.109 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0478/0.6643, allocations: 17.17 MB / 0.563 GB, free: 5.875 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004034/0.6648, allocations: 27.45 kB / 0.563 GB, free: 5.852 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002527/0.6673, allocations: 469.7 kB / 0.5634 GB, free: 5.402 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005917/0.6679, allocations: 0.6091 MB / 0.564 GB, free: 4.789 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0334/0.7013, allocations: 15.56 MB / 0.5792 GB, free: 5.211 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4593/1.161, allocations: 58.02 MB / 0.6359 GB, free: 155.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01789/1.179, allocations: 20.89 MB / 0.6563 GB, free: 139.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005819/1.184, allocations: 3.307 MB / 0.6595 GB, free: 139.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/1.2, allocations: 9.556 MB / 0.6689 GB, free: 138 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/1.2, allocations: 71.53 kB / 0.6689 GB, free: 138 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=313): time 5.049e-06/1.2, allocations: 0 / 0.6689 GB, free: 138 MB / 0.5138 GB Notification: Performance of matching and sorting (n=340): time 0.02988/1.23, allocations: 17.04 MB / 0.6856 GB, free: 131.1 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/1.23, allocations: 125.7 kB / 0.6857 GB, free: 130.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006553/1.236, allocations: 5.415 MB / 0.691 GB, free: 129 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000358/1.237, allocations: 83.89 kB / 0.6911 GB, free: 129 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002808/1.239, allocations: 5.53 MB / 0.6965 GB, free: 125.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008667/1.24, allocations: 1.262 MB / 0.6977 GB, free: 124.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/1.242, allocations: 1.352 MB / 0.699 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.461e-05/1.242, allocations: 301.1 kB / 0.6993 GB, free: 123.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003522/1.245, allocations: 2.743 MB / 0.702 GB, free: 122.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004662/1.25, allocations: 5.796 MB / 0.7076 GB, free: 117.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008497/1.259, allocations: 8.967 MB / 0.7164 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.27e-05/1.259, allocations: 28.47 kB / 0.7164 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01362/1.272, allocations: 9.704 MB / 0.7259 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.894e-05/1.272, allocations: 48 kB / 0.7259 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-05/1.273, allocations: 104 kB / 0.726 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002065/1.275, allocations: 0.9293 MB / 0.7269 GB, free: 100.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004479/1.279, allocations: 1.583 MB / 0.7285 GB, free: 98.55 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009791/1.289, allocations: 10.53 MB / 0.7388 GB, free: 87.61 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005478/1.294, allocations: 435.4 kB / 0.7392 GB, free: 87.18 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006871/1.295, allocations: 360 kB / 0.7395 GB, free: 86.83 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.00519/1.3, allocations: 3.845 MB / 0.7433 GB, free: 82.97 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009564/1.301, allocations: 0.5395 MB / 0.7438 GB, free: 82.43 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008558/1.31, allocations: 5.898 MB / 0.7496 GB, free: 76.46 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00395/1.314, allocations: 3.041 MB / 0.7525 GB, free: 73.41 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/1.314, allocations: 12.11 kB / 0.7526 GB, free: 73.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.854e-05/1.314, allocations: 23.81 kB / 0.7526 GB, free: 73.38 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01957/1.334, allocations: 14.68 MB / 0.7669 GB, free: 58.61 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/1.334, allocations: 4 kB / 0.7669 GB, free: 58.61 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002318/1.336, allocations: 0.6013 MB / 0.7675 GB, free: 58 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002075/1.338, allocations: 0.9001 MB / 0.7684 GB, free: 57.09 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002047/1.338, allocations: 79.97 kB / 0.7685 GB, free: 57.02 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/1.35, allocations: 14.03 MB / 0.7822 GB, free: 42.32 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.85e-06/1.35, allocations: 15.88 kB / 0.7822 GB, free: 42.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/1.361, allocations: 8.53 MB / 0.7905 GB, free: 33.59 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002478/1.364, allocations: 1.017 MB / 0.7915 GB, free: 32.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008556/1.364, allocations: 76.05 kB / 0.7916 GB, free: 32.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002382/1.367, allocations: 199.8 kB / 0.7918 GB, free: 32.28 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005096/1.367, allocations: 262.5 kB / 0.792 GB, free: 32.02 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002147/1.368, allocations: 96.34 kB / 0.7921 GB, free: 31.93 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004782/1.372, allocations: 3.575 MB / 0.7956 GB, free: 28.37 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.71e-07/1.372, allocations: 0 / 0.7956 GB, free: 28.37 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006403/1.379, allocations: 1.828 MB / 0.7974 GB, free: 26.54 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.0005698/1.379, allocations: 266 kB / 0.7976 GB, free: 26.28 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009734/1.389, allocations: 7.109 MB / 0.8046 GB, free: 19.12 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.389, allocations: 0 / 0.8046 GB, free: 19.12 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004877/1.394, allocations: 3.412 MB / 0.8079 GB, free: 15.64 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005844/1.4, allocations: 1.18 MB / 0.8091 GB, free: 14.47 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2321/1.632, allocations: 18.57 MB / 0.8272 GB, free: 156.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01203/1.644, allocations: 6.659 MB / 0.8337 GB, free: 155.5 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005856/1.65, allocations: 1.94 MB / 0.8356 GB, free: 155.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/1.651, allocations: 385.6 kB / 0.836 GB, free: 155.4 MB / 0.5138 GB Notification: Performance of SimCode: time 1.243e-06/1.651, allocations: 3.594 kB / 0.836 GB, free: 155.4 MB / 0.5138 GB Notification: Performance of Templates: time 0.1062/1.757, allocations: 69.77 MB / 0.9041 GB, free: 110.9 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)