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.006176/0.006177, allocations: 98.2 kB / 15.73 MB, free: 6.445 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.001344/0.001344, allocations: 193.8 kB / 16.67 MB, free: 6.348 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.6/1.6, allocations: 205.1 MB / 222.6 MB, free: 4.547 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.001289/0.001289, allocations: 57.7 kB / 326.6 MB, free: 14.19 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1233, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.03467/0.158, allocations: 24.05 MB / 397.2 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.1739, allocations: 7.117 MB / 404.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005293/0.1793, allocations: 127.5 kB / 404.5 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005316/0.1847, allocations: 1.579 MB / 406.1 MB, free: 284 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00884/0.1935, allocations: 2.267 MB / 408.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004713/0.1983, allocations: 1.466 MB / 409.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01018/0.2084, allocations: 7.196 MB / 417 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008747/0.2172, allocations: 5.478 MB / 422.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005142/0.2224, allocations: 3.177 MB / 425.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006618/0.229, allocations: 3.829 MB / 429.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002955/0.232, allocations: 0.875 MB / 430.4 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004444/0.2365, allocations: 1.296 MB / 431.7 MB, free: 6.531 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00356/0.24, allocations: 2.131 MB / 433.8 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006852/0.2469, allocations: 3.773 MB / 437.6 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0169/0.2638, allocations: 11.5 MB / 449.1 MB, free: 5.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2639, allocations: 3.938 kB / 449.1 MB, free: 5.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2639, allocations: 0 / 449.1 MB, free: 5.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000509/0.2644, allocations: 0 / 449.1 MB, free: 5.066 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.27/0.5344, allocations: 7.583 MB / 456.6 MB, free: 63.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.998e-05/0.5346, allocations: 9.625 kB / 456.6 MB, free: 63.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008475/0.543, allocations: 1.256 MB / 457.9 MB, free: 62.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.5536, allocations: 3.939 MB / 461.8 MB, free: 60.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004229/0.554, allocations: 427.6 kB / 462.3 MB, free: 60.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001893/0.5559, allocations: 0.5612 MB / 462.8 MB, free: 60.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/0.5761, allocations: 7.271 MB / 470.1 MB, free: 57.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002451/0.5764, allocations: 16.42 kB / 470.1 MB, free: 57.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000971/0.5773, allocations: 236.2 kB / 470.3 MB, free: 57.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003018/0.5777, allocations: 263.1 kB / 470.6 MB, free: 57.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01189/0.5895, allocations: 6.105 MB / 476.7 MB, free: 53.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04404/0.6336, allocations: 23.47 MB / 0.4885 GB, free: 32.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006544/0.6402, allocations: 8.728 MB / 0.497 GB, free: 22.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003394/0.6436, allocations: 2.359 MB / 0.4993 GB, free: 20.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01197/0.6556, allocations: 6.933 MB / 0.506 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.6557, allocations: 56.56 kB / 0.5061 GB, free: 13.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.509e-06/0.6557, allocations: 2.344 kB / 0.5061 GB, free: 13.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03132/0.6871, allocations: 13.82 MB / 0.5196 GB, free: 15.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.6872, allocations: 81.59 kB / 0.5197 GB, free: 15.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006558/0.6938, allocations: 3.428 MB / 0.523 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006864/0.6945, allocations: 69.7 kB / 0.5231 GB, free: 11.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002242/0.6968, allocations: 2.752 MB / 0.5258 GB, free: 8.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00131/0.6981, allocations: 1.022 MB / 0.5268 GB, free: 7.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001117/0.6992, allocations: 0.6412 MB / 0.5274 GB, free: 7.184 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.6993, allocations: 305.1 kB / 0.5277 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002682/0.702, allocations: 1.541 MB / 0.5292 GB, free: 5.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003306/0.7053, allocations: 2.763 MB / 0.5319 GB, free: 2.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006368/0.7117, allocations: 4.602 MB / 0.5364 GB, free: 12.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.003e-05/0.7118, allocations: 12 kB / 0.5364 GB, free: 12.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01002/0.7218, allocations: 5.492 MB / 0.5418 GB, free: 7.266 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/0.7219, allocations: 20 kB / 0.5418 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.705e-05/0.722, allocations: 40 kB / 0.5418 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/0.7236, allocations: 0.6626 MB / 0.5425 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003345/0.727, allocations: 0.8696 MB / 0.5433 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.7375, allocations: 10.35 MB / 0.5534 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004133/0.7416, allocations: 227.7 kB / 0.5536 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005359/0.7422, allocations: 164 kB / 0.5538 GB, free: 10.37 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * 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.003701/0.7459, allocations: 1.621 MB / 0.5554 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/0.7472, allocations: 417.3 kB / 0.5558 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008487/0.7557, allocations: 4.506 MB / 0.5602 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.55e-05/0.7558, allocations: 36 kB / 0.5602 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-05/0.7558, allocations: 8 kB / 0.5602 GB, free: 3.656 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.519e-05/0.7559, allocations: 19.92 kB / 0.5602 GB, free: 3.637 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01964/0.7755, allocations: 9.905 MB / 0.5699 GB, free: 9.555 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.7756, allocations: 4.656 kB / 0.5699 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002176/0.7778, allocations: 0.5032 MB / 0.5704 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001911/0.7797, allocations: 0.7269 MB / 0.5711 GB, free: 8.301 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000242/0.7799, allocations: 71.97 kB / 0.5712 GB, free: 8.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01331/0.7933, allocations: 14.13 MB / 0.585 GB, free: 9.281 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.7933, allocations: 12.06 kB / 0.585 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01103/0.8043, allocations: 6.612 MB / 0.5915 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002049/0.8064, allocations: 0.7873 MB / 0.5922 GB, free: 1.598 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006144/0.8071, allocations: 64.02 kB / 0.5923 GB, free: 1.539 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002/0.8091, allocations: 163.8 kB / 0.5924 GB, free: 1.379 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004833/0.8096, allocations: 217.6 kB / 0.5927 GB, free: 1.164 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001906/0.8098, allocations: 87.97 kB / 0.5927 GB, free: 1.078 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00368/0.8135, allocations: 2.302 MB / 0.595 GB, free: 14.79 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.8135, allocations: 0 / 0.595 GB, free: 14.79 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005126/0.8186, allocations: 1.098 MB / 0.5961 GB, free: 13.7 MB / 478.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.0007555/0.8194, allocations: 287.3 kB / 0.5963 GB, free: 13.41 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008387/0.8278, allocations: 4.684 MB / 0.6009 GB, free: 8.609 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/0.8279, allocations: 4.812 kB / 0.6009 GB, free: 8.605 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00589/0.8338, allocations: 2.841 MB / 0.6037 GB, free: 5.688 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007374/0.8412, allocations: 0.8997 MB / 0.6046 GB, free: 4.789 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01959/0.8608, allocations: 10.59 MB / 0.6149 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003471/0.8643, allocations: 3.499 MB / 0.6183 GB, free: 6.531 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003123/0.8675, allocations: 0.8562 MB / 0.6192 GB, free: 5.668 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008013/0.8683, allocations: 267.3 kB / 0.6194 GB, free: 5.406 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8683, allocations: 0 / 0.6194 GB, free: 5.406 MB / 494.1 MB Notification: Performance of Templates: time 0.3415/1.21, allocations: 51.65 MB / 0.6699 GB, free: 130.9 MB / 494.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)