Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.006515/0.006514, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.00125/0.00125, allocations: 196.3 kB / 16.67 MB, free: 5.926 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.433/1.433, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001225/0.001225, allocations: 51.2 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0933/0.09453, 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.02693/0.1215, allocations: 24.05 MB / 397.2 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01571/0.1373, allocations: 7.106 MB / 404.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005862/0.1432, allocations: 131.5 kB / 404.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005555/0.1488, allocations: 1.575 MB / 406.1 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008081/0.1569, allocations: 2.279 MB / 408.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004495/0.1615, allocations: 1.462 MB / 409.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01024/0.1717, allocations: 7.2 MB / 417 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01035/0.1821, allocations: 5.478 MB / 422.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00523/0.1874, allocations: 3.181 MB / 425.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006063/0.1935, allocations: 3.818 MB / 429.5 MB, free: 8.719 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002619/0.1961, allocations: 0.8711 MB / 430.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004047/0.2002, allocations: 1.308 MB / 431.7 MB, free: 6.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003401/0.2036, allocations: 2.127 MB / 433.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006876/0.2105, allocations: 3.777 MB / 437.6 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01889/0.2294, allocations: 11.46 MB / 449 MB, free: 5.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.2295, allocations: 4 kB / 449 MB, free: 5.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2295, allocations: 0 / 449 MB, free: 5.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003924/0.2299, allocations: 0 / 449 MB, free: 5.113 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.2263/0.4562, allocations: 7.413 MB / 456.4 MB, free: 63.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.4563, allocations: 9.469 kB / 456.4 MB, free: 63.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007578/0.4639, allocations: 1.221 MB / 457.7 MB, free: 62.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01111/0.475, allocations: 3.916 MB / 461.6 MB, free: 60.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005182/0.4756, allocations: 430.8 kB / 462 MB, free: 60.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002545/0.4781, allocations: 0.5621 MB / 462.6 MB, free: 60.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02099/0.4991, allocations: 7.274 MB / 469.8 MB, free: 57.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001884/0.4994, allocations: 6.562 kB / 469.8 MB, free: 57.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000983/0.5004, allocations: 238.7 kB / 470.1 MB, free: 57.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000248/0.5006, allocations: 267.6 kB / 470.3 MB, free: 57.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/0.5129, allocations: 6.102 MB / 476.4 MB, free: 53.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04145/0.5544, allocations: 23.4 MB / 499.8 MB, free: 32.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0065/0.5609, allocations: 8.725 MB / 0.4966 GB, free: 22.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0032/0.5642, allocations: 2.359 MB / 0.499 GB, free: 20.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.5759, allocations: 6.923 MB / 0.5057 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.576, allocations: 60.56 kB / 0.5058 GB, free: 13.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 5.711e-06/0.576, allocations: 0 / 0.5058 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03239/0.6084, allocations: 13.73 MB / 0.5192 GB, free: 15.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.6085, allocations: 81.59 kB / 0.5193 GB, free: 15.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00605/0.6145, allocations: 3.42 MB / 0.5226 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005488/0.6151, allocations: 77.7 kB / 0.5227 GB, free: 11.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00206/0.6172, allocations: 2.685 MB / 0.5253 GB, free: 8.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00112/0.6183, allocations: 0.9531 MB / 0.5262 GB, free: 7.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009849/0.6193, allocations: 0.6409 MB / 0.5268 GB, free: 7.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.6194, allocations: 309.1 kB / 0.5271 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/0.6222, allocations: 1.549 MB / 0.5287 GB, free: 5.383 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00389/0.6261, allocations: 2.755 MB / 0.5313 GB, free: 2.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007007/0.6331, allocations: 4.606 MB / 0.5358 GB, free: 12.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-05/0.6332, allocations: 16 kB / 0.5359 GB, free: 12.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01036/0.6435, allocations: 5.474 MB / 0.5412 GB, free: 7.324 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.734e-05/0.6436, allocations: 20 kB / 0.5412 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-05/0.6437, allocations: 40.66 kB / 0.5413 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/0.6453, allocations: 0.6667 MB / 0.5419 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00339/0.6487, allocations: 0.8619 MB / 0.5428 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.6594, allocations: 10.36 MB / 0.5529 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004405/0.6639, allocations: 219.6 kB / 0.5531 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007075/0.6646, allocations: 180.1 kB / 0.5533 GB, free: 10.42 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.005048/0.6697, allocations: 1.613 MB / 0.5548 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001506/0.6712, allocations: 395.2 kB / 0.5552 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00855/0.6797, allocations: 4.502 MB / 0.5596 GB, free: 3.781 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.374e-05/0.6798, allocations: 35.98 kB / 0.5596 GB, free: 3.746 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.207e-05/0.6799, allocations: 8 kB / 0.5596 GB, free: 3.738 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.951e-05/0.6799, allocations: 11.95 kB / 0.5597 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01812/0.698, allocations: 9.903 MB / 0.5693 GB, free: 9.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.6981, allocations: 4 kB / 0.5693 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/0.7004, allocations: 0.4954 MB / 0.5698 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/0.7024, allocations: 0.7384 MB / 0.5705 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002627/0.7026, allocations: 75.97 kB / 0.5706 GB, free: 8.316 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/0.7167, allocations: 14.12 MB / 0.5844 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.7167, allocations: 11.94 kB / 0.5844 GB, free: 9.363 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01107/0.7278, allocations: 6.587 MB / 0.5908 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002781/0.7306, allocations: 0.7734 MB / 0.5916 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007779/0.7314, allocations: 68.02 kB / 0.5917 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002123/0.7336, allocations: 163.8 kB / 0.5918 GB, free: 1.504 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005436/0.7341, allocations: 217.7 kB / 0.592 GB, free: 1.289 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001786/0.7343, allocations: 79.98 kB / 0.5921 GB, free: 1.211 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00365/0.738, allocations: 2.31 MB / 0.5943 GB, free: 14.92 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.738, allocations: 4 kB / 0.5944 GB, free: 14.91 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005011/0.743, allocations: 1.095 MB / 0.5954 GB, free: 13.82 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.0008095/0.7438, allocations: 274.9 kB / 0.5957 GB, free: 13.55 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007757/0.7516, allocations: 4.69 MB / 0.6003 GB, free: 8.754 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.7516, allocations: 4.188 kB / 0.6003 GB, free: 8.75 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004618/0.7562, allocations: 2.824 MB / 0.603 GB, free: 5.852 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0048/0.761, allocations: 0.9083 MB / 0.6039 GB, free: 4.945 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01936/0.7804, allocations: 10.43 MB / 0.6141 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003474/0.7839, allocations: 3.499 MB / 0.6175 GB, free: 6.883 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003117/0.7871, allocations: 0.8562 MB / 0.6183 GB, free: 6.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007668/0.7879, allocations: 267.4 kB / 0.6186 GB, free: 5.758 MB / 494.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7879, allocations: 0 / 0.6186 GB, free: 5.758 MB / 494.1 MB Notification: Performance of Templates: time 0.3112/1.099, allocations: 51.64 MB / 0.669 GB, free: 131.4 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)