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.004933/0.004933, allocations: 101.4 kB / 15.73 MB, free: 6.035 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.001096/0.001096, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.499/1.499, allocations: 205.1 MB / 222.6 MB, free: 4.469 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.001129/0.001129, allocations: 54.36 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08854/0.08968, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02418/0.1139, allocations: 24.04 MB / 397.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.1296, allocations: 7.109 MB / 404.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005046/0.1348, allocations: 131.5 kB / 404.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00543/0.1402, allocations: 1.575 MB / 406.1 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009252/0.1495, allocations: 2.271 MB / 408.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005095/0.1546, allocations: 1.458 MB / 409.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01134/0.166, allocations: 7.208 MB / 417 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00781/0.1739, allocations: 5.471 MB / 422.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006282/0.1802, allocations: 3.185 MB / 425.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007256/0.1875, allocations: 3.822 MB / 429.5 MB, free: 8.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002846/0.1904, allocations: 0.875 MB / 430.4 MB, free: 7.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004188/0.1946, allocations: 1.3 MB / 431.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002784/0.1974, allocations: 2.127 MB / 433.8 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005491/0.2029, allocations: 3.777 MB / 437.6 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01236/0.2153, allocations: 11.45 MB / 449 MB, free: 5.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2153, allocations: 7.938 kB / 449 MB, free: 5.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2153, allocations: 0 / 449 MB, free: 5.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003268/0.2157, allocations: 3.938 kB / 449 MB, free: 5.121 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.2246/0.4402, allocations: 7.417 MB / 456.4 MB, free: 63.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4403, allocations: 9.031 kB / 456.4 MB, free: 63.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00712/0.4474, allocations: 1.219 MB / 457.7 MB, free: 62.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01119/0.4586, allocations: 3.922 MB / 461.6 MB, free: 60.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004907/0.4592, allocations: 430.3 kB / 462 MB, free: 60.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/0.4614, allocations: 0.5601 MB / 462.6 MB, free: 60.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02018/0.4816, allocations: 7.272 MB / 469.8 MB, free: 57.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/0.4818, allocations: 16.05 kB / 469.9 MB, free: 57.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006222/0.4824, allocations: 236.1 kB / 470.1 MB, free: 57.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002331/0.4827, allocations: 260 kB / 470.3 MB, free: 57.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.4949, allocations: 6.107 MB / 476.4 MB, free: 53.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04098/0.5359, allocations: 23.4 MB / 499.8 MB, free: 32.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006924/0.5429, allocations: 8.72 MB / 0.4966 GB, free: 22.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003201/0.5461, allocations: 2.359 MB / 0.4989 GB, free: 20.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.011/0.5571, allocations: 6.927 MB / 0.5057 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.5572, allocations: 60.56 kB / 0.5058 GB, free: 13.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 5.18e-06/0.5572, allocations: 0 / 0.5058 GB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03182/0.589, allocations: 13.73 MB / 0.5192 GB, free: 15.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.5892, allocations: 81.59 kB / 0.5193 GB, free: 15.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007683/0.5969, allocations: 3.42 MB / 0.5226 GB, free: 11.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00073/0.5976, allocations: 77.7 kB / 0.5227 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002153/0.5998, allocations: 2.68 MB / 0.5253 GB, free: 8.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/0.6009, allocations: 0.9573 MB / 0.5262 GB, free: 7.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001054/0.602, allocations: 0.6448 MB / 0.5268 GB, free: 7.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.6021, allocations: 309.1 kB / 0.5271 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002661/0.6048, allocations: 1.545 MB / 0.5287 GB, free: 5.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003337/0.6081, allocations: 2.763 MB / 0.5314 GB, free: 2.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006408/0.6146, allocations: 4.607 MB / 0.5359 GB, free: 12.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.399e-05/0.6146, allocations: 8 kB / 0.5359 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009872/0.6245, allocations: 5.474 MB / 0.5412 GB, free: 7.348 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.6246, allocations: 24 kB / 0.5412 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.088e-05/0.6247, allocations: 36.66 kB / 0.5413 GB, free: 7.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.6263, allocations: 0.6629 MB / 0.5419 GB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003504/0.6298, allocations: 0.8657 MB / 0.5428 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.6405, allocations: 10.36 MB / 0.5529 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/0.6447, allocations: 223.6 kB / 0.5531 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006081/0.6453, allocations: 168 kB / 0.5532 GB, free: 10.45 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.003504/0.6488, allocations: 1.617 MB / 0.5548 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/0.6499, allocations: 391.2 kB / 0.5552 GB, free: 8.434 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008124/0.6581, allocations: 4.51 MB / 0.5596 GB, free: 3.801 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.742e-05/0.6582, allocations: 32 kB / 0.5596 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/0.6582, allocations: 4 kB / 0.5596 GB, free: 3.766 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.432e-05/0.6582, allocations: 15.95 kB / 0.5597 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01792/0.6762, allocations: 9.905 MB / 0.5693 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.6762, allocations: 4 kB / 0.5693 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/0.6785, allocations: 0.4993 MB / 0.5698 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001997/0.6805, allocations: 0.7345 MB / 0.5705 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002494/0.6808, allocations: 71.97 kB / 0.5706 GB, free: 8.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/0.6936, allocations: 14.13 MB / 0.5844 GB, free: 9.391 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.6936, allocations: 12 kB / 0.5844 GB, free: 9.379 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01099/0.7046, allocations: 6.59 MB / 0.5908 GB, free: 2.539 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002384/0.7071, allocations: 0.7734 MB / 0.5916 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009368/0.708, allocations: 59.98 kB / 0.5917 GB, free: 1.684 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002145/0.7102, allocations: 163.8 kB / 0.5918 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005137/0.7107, allocations: 217.6 kB / 0.592 GB, free: 1.309 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/0.7109, allocations: 83.97 kB / 0.5921 GB, free: 1.227 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003664/0.7146, allocations: 2.306 MB / 0.5944 GB, free: 14.94 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7146, allocations: 4 kB / 0.5944 GB, free: 14.93 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004867/0.7194, allocations: 1.099 MB / 0.5954 GB, free: 13.84 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.000727/0.7202, allocations: 271.8 kB / 0.5957 GB, free: 13.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00797/0.7282, allocations: 4.686 MB / 0.6003 GB, free: 8.777 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.56e-05/0.7282, allocations: 8.188 kB / 0.6003 GB, free: 8.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004966/0.7332, allocations: 2.817 MB / 0.603 GB, free: 5.879 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00581/0.739, allocations: 0.9116 MB / 0.6039 GB, free: 4.969 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/0.7583, allocations: 10.43 MB / 0.6141 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003522/0.7619, allocations: 3.499 MB / 0.6175 GB, free: 6.902 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002954/0.7649, allocations: 0.8484 MB / 0.6183 GB, free: 6.047 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008073/0.7657, allocations: 267.4 kB / 0.6186 GB, free: 5.785 MB / 494.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7657, allocations: 3.938 kB / 0.6186 GB, free: 5.781 MB / 494.1 MB Notification: Performance of Templates: time 0.3064/1.072, allocations: 51.65 MB / 0.669 GB, free: 131.5 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)